pub struct IdentifierPath(/* private fields */);Expand description
A non-empty qualified identifier path.
Implementations§
Source§impl IdentifierPath
impl IdentifierPath
Sourcepub fn new(values: Vec<Identifier>) -> Option<Self>
pub fn new(values: Vec<Identifier>) -> Option<Self>
Creates a non-empty identifier path.
Sourcepub fn components(&self) -> &[Identifier]
pub fn components(&self) -> &[Identifier]
Borrows the path components.
Sourcepub fn last(&self) -> &Identifier
pub fn last(&self) -> &Identifier
Borrows the terminal identifier.
Trait Implementations§
Source§impl Clone for IdentifierPath
impl Clone for IdentifierPath
Source§impl Debug for IdentifierPath
impl Debug for IdentifierPath
impl Eq for IdentifierPath
Source§impl Hash for IdentifierPath
impl Hash for IdentifierPath
Source§impl Ord for IdentifierPath
impl Ord for IdentifierPath
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for IdentifierPath
impl PartialEq for IdentifierPath
Source§impl PartialOrd for IdentifierPath
impl PartialOrd for IdentifierPath
impl StructuralPartialEq for IdentifierPath
Auto Trait Implementations§
impl Freeze for IdentifierPath
impl RefUnwindSafe for IdentifierPath
impl Send for IdentifierPath
impl Sync for IdentifierPath
impl Unpin for IdentifierPath
impl UnsafeUnpin for IdentifierPath
impl UnwindSafe for IdentifierPath
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