Struct Identifier
pub struct Identifier(/* private fields */);Implementations§
§impl Identifier
impl Identifier
pub fn from_parts( namespace: &str, path: &str, ) -> Result<Identifier, IdentifierError>
pub fn parse_namespaced(text: &str) -> Option<Identifier>
pub fn parse_namespaced(text: &str) -> Option<Identifier>
A fully qualified identifier with nonempty namespace and path.
pub fn parse(text: &str) -> Result<Identifier, IdentifierError>
pub fn namespace(&self) -> &str
pub fn path(&self) -> &str
pub fn hash_code(&self) -> i32
Trait Implementations§
§impl Clone for Identifier
impl Clone for Identifier
§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for Identifier
impl Debug for Identifier
§impl Display for Identifier
impl Display for Identifier
impl Eq for Identifier
§impl JavaKey for Identifier
impl JavaKey for Identifier
fn java_hash(&self) -> i32
§fn comparable_compare(&self, other: &Identifier) -> Option<Ordering>
fn comparable_compare(&self, other: &Identifier) -> Option<Ordering>
Comparable comparison when both keys have the appropriate same Java
class. None and Equal both require subtree searches for unequal keys.
§fn tie_break(&self, other: &Identifier) -> Ordering
fn tie_break(&self, other: &Identifier) -> Ordering
Native class-name ordering, then identity-hash ordering. Equal identity
hashes break to Less, even for two different objects. Never return Equal.
§impl Ord for Identifier
impl Ord for Identifier
§fn cmp(&self, other: &Identifier) -> Ordering
fn cmp(&self, other: &Identifier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Identifier
impl PartialEq for Identifier
§impl PartialOrd for Identifier
impl PartialOrd for Identifier
impl StructuralPartialEq for Identifier
§impl TryFrom<String> for Identifier
impl TryFrom<String> for Identifier
§impl Wire for Identifier
impl Wire for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnsafeUnpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more