Enum loro_common::ContainerType
source · pub enum ContainerType {
Text,
Map,
List,
Tree,
}
Variants§
Implementations§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ContainerType
impl<'arbitrary> Arbitrary<'arbitrary> for ContainerType
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for ContainerType
impl Clone for ContainerType
source§fn clone(&self) -> ContainerType
fn clone(&self) -> ContainerType
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 ContainerType
impl Debug for ContainerType
source§impl<'de> Deserialize<'de> for ContainerType
impl<'de> Deserialize<'de> for ContainerType
source§fn 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
source§impl Display for ContainerType
impl Display for ContainerType
source§impl From<ContainerType> for LoroValue
impl From<ContainerType> for LoroValue
source§fn from(value: ContainerType) -> Self
fn from(value: ContainerType) -> Self
Converts to this type from the input type.
source§impl Hash for ContainerType
impl Hash for ContainerType
source§impl Ord for ContainerType
impl Ord for ContainerType
source§fn cmp(&self, other: &ContainerType) -> Ordering
fn cmp(&self, other: &ContainerType) -> 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 ContainerType
impl PartialEq for ContainerType
source§fn eq(&self, other: &ContainerType) -> bool
fn eq(&self, other: &ContainerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContainerType
impl PartialOrd for ContainerType
source§fn partial_cmp(&self, other: &ContainerType) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainerType) -> 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 moresource§impl Serialize for ContainerType
impl Serialize for ContainerType
source§impl TryFrom<&str> for ContainerType
impl TryFrom<&str> for ContainerType
impl Copy for ContainerType
impl Eq for ContainerType
impl StructuralEq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl RefUnwindSafe for ContainerType
impl Send for ContainerType
impl Sync for ContainerType
impl Unpin for ContainerType
impl UnwindSafe for ContainerType
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