pub struct ParsedBlock {
pub spans: Vec<ParsedSpan>,
pub heading_level: Option<i64>,
pub list_style: Option<ListStyle>,
pub is_code_block: bool,
pub line_height: Option<i64>,
pub non_breakable_lines: Option<bool>,
pub direction: Option<TextDirection>,
pub background_color: Option<String>,
}Expand description
A parsed block (paragraph, heading, list item, code block)
Fields§
§spans: Vec<ParsedSpan>§heading_level: Option<i64>§list_style: Option<ListStyle>§is_code_block: bool§line_height: Option<i64>§non_breakable_lines: Option<bool>§direction: Option<TextDirection>§background_color: Option<String>Trait Implementations§
Source§impl Clone for ParsedBlock
impl Clone for ParsedBlock
Source§fn clone(&self) -> ParsedBlock
fn clone(&self) -> ParsedBlock
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 moreAuto Trait Implementations§
impl Freeze for ParsedBlock
impl RefUnwindSafe for ParsedBlock
impl Send for ParsedBlock
impl Sync for ParsedBlock
impl Unpin for ParsedBlock
impl UnsafeUnpin for ParsedBlock
impl UnwindSafe for ParsedBlock
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