pub struct LayoutNodeId(/* private fields */);Expand description
Deterministic identifier for a layout node, derived from its position in the tree (sequence of child indices from the root).
Root has an empty path. The first child of root is "0". The third
child of the second child of root is "1/2". The encoding is
human-readable and stable across runs and platforms.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutNodeId
impl Clone for LayoutNodeId
Source§fn clone(&self) -> LayoutNodeId
fn clone(&self) -> LayoutNodeId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutNodeId
impl Debug for LayoutNodeId
Source§impl Default for LayoutNodeId
impl Default for LayoutNodeId
Source§fn default() -> LayoutNodeId
fn default() -> LayoutNodeId
Returns the “default value” for a type. Read more
Source§impl Hash for LayoutNodeId
impl Hash for LayoutNodeId
Source§impl Ord for LayoutNodeId
impl Ord for LayoutNodeId
Source§fn cmp(&self, other: &LayoutNodeId) -> Ordering
fn cmp(&self, other: &LayoutNodeId) -> Ordering
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
Source§impl PartialEq for LayoutNodeId
impl PartialEq for LayoutNodeId
Source§fn eq(&self, other: &LayoutNodeId) -> bool
fn eq(&self, other: &LayoutNodeId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LayoutNodeId
impl PartialOrd for LayoutNodeId
impl Eq for LayoutNodeId
impl StructuralPartialEq for LayoutNodeId
Auto Trait Implementations§
impl Freeze for LayoutNodeId
impl RefUnwindSafe for LayoutNodeId
impl Send for LayoutNodeId
impl Sync for LayoutNodeId
impl Unpin for LayoutNodeId
impl UnsafeUnpin for LayoutNodeId
impl UnwindSafe for LayoutNodeId
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