pub struct MarkdownConfig {
pub data: String,
pub options: Options,
pub style_sheet: Option<MarkdownStyleSheet>,
pub fit_content: bool,
pub hooks: MarkdownHooks,
}Expand description
What MarkdownBody and Markdown share: the text, how it is parsed, how it looks.
Fields§
§data: String§options: OptionsThe extensions data is parsed with, GITHUB_FLAVORED by default.
style_sheet: Option<MarkdownStyleSheet>When given, replaces the inherited DefaultMarkdownStyle whole.
fit_content: boolWhether a block takes its content’s width rather than the full width.
hooks: MarkdownHooksTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MarkdownConfig
impl !Send for MarkdownConfig
impl !Sync for MarkdownConfig
impl !UnwindSafe for MarkdownConfig
impl Forget for MarkdownConfig
impl Freeze for MarkdownConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
InternalBitFlags: Freeze,
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
PhantomData<String>: Freeze,
*const RcInner<Paint> is !null: Freeze,
PhantomData<RcInner<Paint>>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
*const RcInner<dyn BoxBorder> is !null: Freeze,
PhantomData<RcInner<dyn BoxBorder>>: Freeze,
PhantomData<BoxShadow>: Freeze,
*const RcInner<dyn Gradient> is !null: Freeze,
PhantomData<RcInner<dyn Gradient>>: Freeze,
*const RcInner<dyn TableColumnWidth> is !null: Freeze,
PhantomData<RcInner<dyn TableColumnWidth>>: Freeze,
*const RcInner<dyn Fn(&mut App, &str, &str)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, &str, &str)>>: Freeze,
*const RcInner<dyn Fn(&mut App, &Image) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, &Image) -> Rc<dyn Widget>>>: Freeze,
*const RcInner<dyn Fn(&mut App, bool) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, bool) -> Rc<dyn Widget>>>: Freeze,
*const RcInner<dyn Fn(&mut App, &Bullet) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, &Bullet) -> Rc<dyn Widget>>>: Freeze,
*const RcInner<dyn Fn(&mut App, Option<&str>, &str) -> TextSpan> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, Option<&str>, &str) -> TextSpan>>: Freeze,
impl Move for MarkdownConfig
impl Unpin for MarkdownConfigwhere
*const u8 is !null: Unpin,
InternalBitFlags: Unpin,
&'static dyn ColorExtension: Unpin,
Rc<dyn ColorExtension>: Unpin,
Rc<Paint>: Unpin,
Rc<dyn BoxBorder>: Unpin,
Rc<dyn Gradient>: Unpin,
Rc<dyn TableColumnWidth>: Unpin,
Rc<dyn Fn(&mut App, &str, &str)>: Unpin,
Rc<dyn Fn(&mut App, &Image) -> Rc<dyn Widget>>: Unpin,
Rc<dyn Fn(&mut App, bool) -> Rc<dyn Widget>>: Unpin,
Rc<dyn Fn(&mut App, &Bullet) -> Rc<dyn Widget>>: Unpin,
Rc<dyn Fn(&mut App, Option<&str>, &str) -> TextSpan>: Unpin,
impl UnsafeUnpin for MarkdownConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
InternalBitFlags: UnsafeUnpin,
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const RcInner<Paint> is !null: UnsafeUnpin,
PhantomData<RcInner<Paint>>: UnsafeUnpin,
PhantomData<Shadow>: UnsafeUnpin,
PhantomData<FontFeature>: UnsafeUnpin,
PhantomData<FontVariation>: UnsafeUnpin,
*const RcInner<dyn BoxBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BoxBorder>>: UnsafeUnpin,
PhantomData<BoxShadow>: UnsafeUnpin,
*const RcInner<dyn Gradient> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Gradient>>: UnsafeUnpin,
*const RcInner<dyn TableColumnWidth> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn TableColumnWidth>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, &str, &str)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, &str, &str)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, &Image) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, &Image) -> Rc<dyn Widget>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, bool) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, bool) -> Rc<dyn Widget>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, &Bullet) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, &Bullet) -> Rc<dyn Widget>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, Option<&str>, &str) -> TextSpan> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, Option<&str>, &str) -> TextSpan>>: UnsafeUnpin,
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