pub struct FormattingState {
pub bold: bool,
pub italic: bool,
pub code: bool,
pub strikethrough: bool,
pub heading_level: u8,
pub bullet_list: bool,
pub ordered_list: bool,
pub blockquote: bool,
}Expand description
Describes which formatting is active at the current cursor position.
Used by toolbar UI to highlight active formatting buttons.
Fields§
§bold: bool§italic: bool§code: bool§strikethrough: bool§heading_level: u80 = no heading, 1-3 = H1-H3
bullet_list: bool§ordered_list: bool§blockquote: boolTrait Implementations§
Source§impl Clone for FormattingState
impl Clone for FormattingState
Source§fn clone(&self) -> FormattingState
fn clone(&self) -> FormattingState
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 FormattingState
impl Debug for FormattingState
Source§impl Default for FormattingState
impl Default for FormattingState
Source§fn default() -> FormattingState
fn default() -> FormattingState
Returns the “default value” for a type. Read more
Source§impl PartialEq for FormattingState
impl PartialEq for FormattingState
impl StructuralPartialEq for FormattingState
Auto Trait Implementations§
impl Freeze for FormattingState
impl RefUnwindSafe for FormattingState
impl Send for FormattingState
impl Sync for FormattingState
impl Unpin for FormattingState
impl UnsafeUnpin for FormattingState
impl UnwindSafe for FormattingState
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