#[repr(transparent)]pub struct TreeId(pub Uuid);Expand description
The stable identity of a Tree.
Use TreeId::ROOT for the main/root tree. For subtrees, use a random
UUID (version 4) to avoid collisions between independently created trees.
Tuple Fields§
§0: UuidImplementations§
Trait Implementations§
impl Copy for TreeId
impl Eq for TreeId
Source§impl Ord for TreeId
impl Ord for TreeId
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 PartialOrd for TreeId
impl PartialOrd for TreeId
impl StructuralPartialEq for TreeId
Auto Trait Implementations§
impl Freeze for TreeId
impl RefUnwindSafe for TreeId
impl Send for TreeId
impl Sync for TreeId
impl Unpin for TreeId
impl UnsafeUnpin for TreeId
impl UnwindSafe for TreeId
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