pub enum PosContent {
Text {
text: String,
marks: Option<Vec<Mark>>,
},
Nodes {
nodes: Vec<Node>,
},
}Expand description
Content carried by an PosEdit::Insert / PosEdit::Replace.
Variants§
Text
Text (optionally marked) inserted into a block’s inline content.
Fields
Nodes
A run of nodes inserted at the resolved boundary.
Trait Implementations§
Source§impl Clone for PosContent
impl Clone for PosContent
Source§fn clone(&self) -> PosContent
fn clone(&self) -> PosContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PosContent
impl Debug for PosContent
Source§impl<'de> Deserialize<'de> for PosContent
impl<'de> Deserialize<'de> for PosContent
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 PosContent
impl PartialEq for PosContent
Source§fn eq(&self, other: &PosContent) -> bool
fn eq(&self, other: &PosContent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PosContent
impl Serialize for PosContent
impl StructuralPartialEq for PosContent
Auto Trait Implementations§
impl Freeze for PosContent
impl RefUnwindSafe for PosContent
impl Send for PosContent
impl Sync for PosContent
impl Unpin for PosContent
impl UnsafeUnpin for PosContent
impl UnwindSafe for PosContent
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