pub struct TextWithMeta {
pub text: String,
pub tags: Tags,
pub props: Props,
}
Expand description
Text that has metadata: tags and/or properties.
Fields§
§text: String
§props: Props
Trait Implementations§
Source§impl Clone for TextWithMeta
impl Clone for TextWithMeta
Source§fn clone(&self) -> TextWithMeta
fn clone(&self) -> TextWithMeta
Returns a duplicate 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 TextWithMeta
impl Debug for TextWithMeta
Source§impl Default for TextWithMeta
impl Default for TextWithMeta
Source§fn default() -> TextWithMeta
fn default() -> TextWithMeta
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextWithMeta
impl PartialEq for TextWithMeta
Source§impl PruneIncodoc for TextWithMeta
impl PruneIncodoc for TextWithMeta
fn prune_errors(&mut self)
fn prune_contentless(&mut self)
fn is_contentless(&self) -> bool
impl Eq for TextWithMeta
impl StructuralPartialEq for TextWithMeta
Auto Trait Implementations§
impl Freeze for TextWithMeta
impl RefUnwindSafe for TextWithMeta
impl Send for TextWithMeta
impl Sync for TextWithMeta
impl Unpin for TextWithMeta
impl UnwindSafe for TextWithMeta
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