pub struct NodeId(pub(crate) u32);
Expand description
Alternative for span. This is much more reliable than span.
Tuple Fields
0: u32
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for NodeId
impl<'de> Deserialize<'de> for NodeId
sourcefn 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
sourceimpl EqIgnoreSpan for NodeId
impl EqIgnoreSpan for NodeId
Always returns true
as the struct is an alternative for span.
fn eq_ignore_span(&self, _: &Self) -> bool
sourceimpl Ord for NodeId
impl Ord for NodeId
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<NodeId> for NodeId
impl PartialOrd<NodeId> for NodeId
sourcefn partial_cmp(&self, other: &NodeId) -> Option<Ordering>
fn partial_cmp(&self, other: &NodeId) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<V: ?Sized> VisitMutWith<V> for NodeId
impl<V: ?Sized> VisitMutWith<V> for NodeId
Noop.
fn visit_mut_children_with(&mut self, _: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)where
V: VisitMut<Self>,
sourceimpl<V: ?Sized> VisitWith<V> for NodeId
impl<V: ?Sized> VisitWith<V> for NodeId
Noop.
fn visit_children_with(&self, _: &mut V)
fn visit_with(&self, visitor: &mut V)where
V: Visit<Self>,
impl Copy for NodeId
impl Eq for NodeId
impl StructuralEq for NodeId
impl StructuralPartialEq for NodeId
impl Visitable for NodeId
Auto Trait Implementations
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more