Enum loro_internal::ContainerType
source · pub enum ContainerType {
Text,
Map,
List,
MovableList,
Tree,
Unknown(u8),
}
Variants§
Implementations§
source§impl ContainerType
impl ContainerType
pub const ALL_TYPES: [ContainerType; 5] = _
pub fn default_value(&self) -> LoroValue
pub fn to_u8(self) -> u8
pub fn try_from_u8(v: u8) -> Result<ContainerType, LoroError>
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ContainerType
impl<'arbitrary> Arbitrary<'arbitrary> for ContainerType
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<ContainerType, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<ContainerType, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<ContainerType, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<ContainerType, Error>
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<ContainerType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContainerType, <__D as Deserializer<'de>>::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 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§impl PartialOrd for ContainerType
impl PartialOrd for ContainerType
source§impl Serialize for ContainerType
impl Serialize for ContainerType
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<&str> for ContainerType
impl TryFrom<&str> for ContainerType
impl Copy for ContainerType
impl Eq for ContainerType
impl StructuralPartialEq for ContainerType
Auto Trait Implementations§
impl Freeze for ContainerType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)