Struct loro_internal::container::idx::ContainerIdx
source · pub struct ContainerIdx(/* private fields */);Expand description
Inner representation for ContainerID. It contains the unique index for the container and the type of the container. It uses top 4 bits to represent the type of the container.
It’s only used inside this crate and should not be exposed to the user.
TODO: make this type private in this crate only
Trait Implementations§
source§impl Clone for ContainerIdx
impl Clone for ContainerIdx
source§fn clone(&self) -> ContainerIdx
fn clone(&self) -> ContainerIdx
Returns a copy of the value. Read more
1.0.0 · 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 ContainerIdx
impl Debug for ContainerIdx
source§impl Hash for ContainerIdx
impl Hash for ContainerIdx
source§impl IntoContainerId for ContainerIdx
impl IntoContainerId for ContainerIdx
fn into_container_id( self, arena: &SharedArena, kind: ContainerType ) -> ContainerID
source§impl Ord for ContainerIdx
impl Ord for ContainerIdx
source§fn cmp(&self, other: &ContainerIdx) -> Ordering
fn cmp(&self, other: &ContainerIdx) -> Ordering
1.21.0 · 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 ContainerIdx
impl PartialEq for ContainerIdx
source§fn eq(&self, other: &ContainerIdx) -> bool
fn eq(&self, other: &ContainerIdx) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ContainerIdx
impl PartialOrd for ContainerIdx
source§fn partial_cmp(&self, other: &ContainerIdx) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainerIdx) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for ContainerIdx
impl Eq for ContainerIdx
impl StructuralEq for ContainerIdx
impl StructuralPartialEq for ContainerIdx
Auto Trait Implementations§
impl RefUnwindSafe for ContainerIdx
impl Send for ContainerIdx
impl Sync for ContainerIdx
impl Unpin for ContainerIdx
impl UnwindSafe for ContainerIdx
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