Struct loro_internal::delta::StyleMeta
source · pub struct StyleMeta { /* private fields */ }Trait Implementations§
source§impl<'de> Deserialize<'de> for StyleMeta
impl<'de> Deserialize<'de> for StyleMeta
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 Meta for StyleMeta
impl Meta for StyleMeta
fn is_empty(&self) -> bool
source§fn compose(&mut self, other: &Self, _type_pair: (DeltaType, DeltaType))
fn compose(&mut self, other: &Self, _type_pair: (DeltaType, DeltaType))
this is used when composing two DeltaItems with the same length
fn is_mergeable(&self, other: &Self) -> bool
source§fn merge(&mut self, _: &Self)
fn merge(&mut self, _: &Self)
This is used when we merge two DeltaItems.
And it’s guaranteed that Meta::is_mergeable is true
fn empty() -> Self
fn take(&mut self, other: &Self) -> Self
source§impl PartialEq for StyleMeta
impl PartialEq for StyleMeta
impl Eq for StyleMeta
impl StructuralEq for StyleMeta
impl StructuralPartialEq for StyleMeta
Auto Trait Implementations§
impl RefUnwindSafe for StyleMeta
impl Send for StyleMeta
impl Sync for StyleMeta
impl Unpin for StyleMeta
impl UnwindSafe for StyleMeta
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