pub struct InlineStyle {
pub emphasis: bool,
pub strong: bool,
pub code: bool,
pub strikethrough: bool,
pub link: Option<Link>,
pub raw_html: bool,
}Expand description
Inline styling carried on a Text event. Multiple flags may apply at once
(e.g. bold + italic). link is set for text inside a link/image.
Fields§
§emphasis: bool§strong: bool§code: bool§strikethrough: bool§link: Option<Link>§raw_html: booltrue for inline raw HTML (<tag …>, comments, …): the text is verbatim HTML and an HTML
renderer must emit it unescaped. The terminal renderer ignores this flag (the literal tag
text is shown as-is), so it has no effect on terminal output.
Implementations§
Trait Implementations§
Source§impl Clone for InlineStyle
impl Clone for InlineStyle
Source§fn clone(&self) -> InlineStyle
fn clone(&self) -> InlineStyle
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 InlineStyle
impl Debug for InlineStyle
Source§impl Default for InlineStyle
impl Default for InlineStyle
Source§fn default() -> InlineStyle
fn default() -> InlineStyle
Returns the “default value” for a type. Read more
impl Eq for InlineStyle
Source§impl PartialEq for InlineStyle
impl PartialEq for InlineStyle
Source§fn eq(&self, other: &InlineStyle) -> bool
fn eq(&self, other: &InlineStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InlineStyle
Auto Trait Implementations§
impl Freeze for InlineStyle
impl RefUnwindSafe for InlineStyle
impl Send for InlineStyle
impl Sync for InlineStyle
impl Unpin for InlineStyle
impl UnsafeUnpin for InlineStyle
impl UnwindSafe for InlineStyle
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