#[non_exhaustive]pub enum InlineContent {
Text(String),
Span(Box<SpanElement>),
Br(Box<BrElement>),
}Expand description
Inline content within <p> and <span>.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
A text node (character data).
Span(Box<SpanElement>)
A <span> element.
Br(Box<BrElement>)
A <br> element.
Trait Implementations§
Source§impl Clone for InlineContent
impl Clone for InlineContent
Source§fn clone(&self) -> InlineContent
fn clone(&self) -> InlineContent
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 InlineContent
impl Debug for InlineContent
Source§impl PartialEq for InlineContent
impl PartialEq for InlineContent
impl StructuralPartialEq for InlineContent
Auto Trait Implementations§
impl Freeze for InlineContent
impl RefUnwindSafe for InlineContent
impl Send for InlineContent
impl Sync for InlineContent
impl Unpin for InlineContent
impl UnsafeUnpin for InlineContent
impl UnwindSafe for InlineContent
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