Struct loro_internal::container::richtext::RichtextSpan
source · pub struct RichtextSpan {
pub text: StringSlice,
pub attributes: StyleMeta,
}Expand description
This is the data structure that represents a span of rich text. It’s used to communicate with the frontend.
Fields§
§text: StringSlice§attributes: StyleMetaTrait Implementations§
source§impl Clone for RichtextSpan
impl Clone for RichtextSpan
source§fn clone(&self) -> RichtextSpan
fn clone(&self) -> RichtextSpan
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 RichtextSpan
impl Debug for RichtextSpan
source§impl<'de> Deserialize<'de> for RichtextSpan
impl<'de> Deserialize<'de> for RichtextSpan
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 PartialEq for RichtextSpan
impl PartialEq for RichtextSpan
source§fn eq(&self, other: &RichtextSpan) -> bool
fn eq(&self, other: &RichtextSpan) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RichtextSpan
impl Serialize for RichtextSpan
impl Eq for RichtextSpan
impl StructuralEq for RichtextSpan
impl StructuralPartialEq for RichtextSpan
Auto Trait Implementations§
impl RefUnwindSafe for RichtextSpan
impl Send for RichtextSpan
impl Sync for RichtextSpan
impl Unpin for RichtextSpan
impl UnwindSafe for RichtextSpan
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