pub struct TextBlock {
pub text_type: TextType,
pub style: Option<BlockStyle>,
pub text: String,
}
Fields§
§text_type: TextType
§style: Option<BlockStyle>
§text: String
Implementations§
Source§impl TextBlock
impl TextBlock
pub fn new(text: String, style: Option<BlockStyle>, text_type: TextType) -> Self
pub fn to_markdown(&self, paragraph_style: &ParagraphStyle) -> String
Trait Implementations§
impl Eq for TextBlock
impl StructuralPartialEq for TextBlock
Auto Trait Implementations§
impl Freeze for TextBlock
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnwindSafe for TextBlock
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.