#[repr(transparent)]pub struct TrieNodeId(pub u32);Expand description
Index of a node in a vocabulary trie. TrieNodeId(0) is the root.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for TrieNodeId
impl<'__de, __Context> BorrowDecode<'__de, __Context> for TrieNodeId
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for TrieNodeId
impl Clone for TrieNodeId
impl Copy for TrieNodeId
Source§impl Debug for TrieNodeId
impl Debug for TrieNodeId
Source§impl<__Context> Decode<__Context> for TrieNodeId
impl<__Context> Decode<__Context> for TrieNodeId
Source§impl Default for TrieNodeId
impl Default for TrieNodeId
Source§impl Encode for TrieNodeId
impl Encode for TrieNodeId
impl Eq for TrieNodeId
Source§impl From<TrieNodeId> for u32
impl From<TrieNodeId> for u32
Source§fn from(id: TrieNodeId) -> u32
fn from(id: TrieNodeId) -> u32
Converts to this type from the input type.
Source§impl Hash for TrieNodeId
impl Hash for TrieNodeId
Source§impl Ord for TrieNodeId
impl Ord for TrieNodeId
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 TrieNodeId
impl PartialEq for TrieNodeId
Source§impl PartialOrd for TrieNodeId
impl PartialOrd for TrieNodeId
impl StructuralPartialEq for TrieNodeId
Auto Trait Implementations§
impl Freeze for TrieNodeId
impl RefUnwindSafe for TrieNodeId
impl Send for TrieNodeId
impl Sync for TrieNodeId
impl Unpin for TrieNodeId
impl UnsafeUnpin for TrieNodeId
impl UnwindSafe for TrieNodeId
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