#[repr(transparent)]pub struct Indices<T: ?Sized>(pub T);
Expand description
Indices of usize
to identify a node in a TreeKey
Tuple Fields§
§0: T
Implementations§
Source§impl<T> Indices<T>
impl<T> Indices<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Extract just the indices
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Indices<T>where
T: Deserialize<'de> + ?Sized,
impl<'de, T> Deserialize<'de> for Indices<T>where
T: Deserialize<'de> + ?Sized,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Ord + ?Sized> Ord for Indices<T>
impl<T: Ord + ?Sized> Ord for Indices<T>
1.21.0 · 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
Source§impl<T: PartialOrd + ?Sized> PartialOrd for Indices<T>
impl<T: PartialOrd + ?Sized> PartialOrd for Indices<T>
impl<T: Copy + ?Sized> Copy for Indices<T>
impl<T: Eq + ?Sized> Eq for Indices<T>
impl<T: ?Sized> StructuralPartialEq for Indices<T>
Auto Trait Implementations§
impl<T> Freeze for Indices<T>
impl<T> RefUnwindSafe for Indices<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for Indices<T>
impl<T> Sync for Indices<T>
impl<T> Unpin for Indices<T>
impl<T> UnwindSafe for Indices<T>where
T: UnwindSafe + ?Sized,
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