#[repr(transparent)]pub struct NodeIndex(pub u32);Expand description
Dense slot index into NodeStore’s node table (0 is reserved for null).
Distinct from NodeId (index:24 | generation:8) so internal slot-index lists cannot be
accidentally mixed with generational NodeIds at compile time.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for NodeIndex
Source§impl<'de> Deserialize<'de> for NodeIndex
impl<'de> Deserialize<'de> for NodeIndex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeIndex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeIndex
Source§impl NvDecode for NodeIndex
impl NvDecode for NodeIndex
Source§const MIN_ENCODED_BYTES: usize
const MIN_ENCODED_BYTES: usize
Conservative minimum encoded byte size used to bound vector pre-allocation.
fn decode(__nv_r: &mut ByteReader<'_>) -> Result<NodeIndex, CodecError>
fn decode_exact(bytes: &[u8]) -> Result<Self, CodecError>
Source§impl NvEncode for NodeIndex
impl NvEncode for NodeIndex
fn encode<__NvW>(&self, __nv_w: &mut __NvW) -> Result<(), CodecError>
fn encode_to_vec(&self) -> Result<Vec<u8>, CodecError>
Source§impl Ord for NodeIndex
impl Ord for NodeIndex
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 PartialOrd for NodeIndex
impl PartialOrd for NodeIndex
Source§impl Serialize for NodeIndex
impl Serialize for NodeIndex
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NodeIndex
Auto Trait Implementations§
impl Forget for NodeIndex
impl Freeze for NodeIndex
impl Move for NodeIndex
impl RefUnwindSafe for NodeIndex
impl Send for NodeIndex
impl Sync for NodeIndex
impl Unpin for NodeIndex
impl UnsafeUnpin for NodeIndex
impl UnwindSafe for NodeIndex
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