pub struct Id { /* private fields */ }Expand description
A human-readable ID
Implementations§
Trait Implementations§
Source§impl Extend<Id> for Link
impl Extend<Id> for Link
Source§fn extend<I: IntoIterator<Item = PathSegment>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = PathSegment>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl Extend<Id> for PathBuf
impl Extend<Id> for PathBuf
Source§fn extend<T: IntoIterator<Item = PathSegment>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PathSegment>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<Id> for PathBuf
impl From<Id> for PathBuf
Source§fn from(segment: PathSegment) -> PathBuf
fn from(segment: PathSegment) -> PathBuf
Converts to this type from the input type.
Source§impl FromIterator<Id> for PathBuf
impl FromIterator<Id> for PathBuf
Source§fn from_iter<T: IntoIterator<Item = PathSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PathSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl GetSize for Id
impl GetSize for Id
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§impl Ord for Id
impl Ord for Id
Source§impl<'a> PartialOrd<&'a str> for Id
impl<'a> PartialOrd<&'a str> for Id
Source§impl PartialOrd<String> for Id
impl PartialOrd<String> for Id
Source§impl PartialOrd<str> for Id
impl PartialOrd<str> for Id
Source§impl PartialOrd for Id
impl PartialOrd for Id
Source§impl TryCastFrom<String> for Id
impl TryCastFrom<String> for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> Match for F
impl<F> Match for F
Source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true if self can be cast into the target type T.Source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
Source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value can be cast into Self.Source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self) if the source value can be cast into Self, otherwise None.Source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
Source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self can be cast into T.Source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T) if self can be cast into T, otherwise None.Source§fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
Returns
Ok(T) if self can be cast into T, otherwise calls on_err.