pub struct InlineState {
pub inline_code: bool,
pub in_bold: bool,
pub in_italic: bool,
pub in_underline: bool,
pub in_strikeout: bool,
}Expand description
Snapshot of current inline formatting states.
This is returned by ParseState::current() to capture
the current inline formatting context.
Fields§
§inline_code: boolWhether inline code formatting is active
in_bold: boolWhether bold formatting is active
in_italic: boolWhether italic formatting is active
in_underline: boolWhether underline formatting is active
in_strikeout: boolWhether strikeout formatting is active
Trait Implementations§
Source§impl Clone for InlineState
impl Clone for InlineState
Source§fn clone(&self) -> InlineState
fn clone(&self) -> InlineState
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 InlineState
impl Debug for InlineState
Source§impl Default for InlineState
impl Default for InlineState
Source§fn default() -> InlineState
fn default() -> InlineState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InlineState
impl<'de> Deserialize<'de> for InlineState
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 InlineState
impl PartialEq for InlineState
Source§impl Serialize for InlineState
impl Serialize for InlineState
impl Eq for InlineState
impl StructuralPartialEq for InlineState
Auto Trait Implementations§
impl Freeze for InlineState
impl RefUnwindSafe for InlineState
impl Send for InlineState
impl Sync for InlineState
impl Unpin for InlineState
impl UnwindSafe for InlineState
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