Skip to main content

MarkdownConfig

Struct MarkdownConfig 

Source
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: Options

The extensions data is parsed with, GITHUB_FLAVORED by default.

§style_sheet: Option<MarkdownStyleSheet>

When given, replaces the inherited DefaultMarkdownStyle whole.

§fit_content: bool

Whether a block takes its content’s width rather than the full width.

§hooks: MarkdownHooks

Trait Implementations§

Source§

impl Clone for MarkdownConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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 MarkdownConfig
where *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 MarkdownConfig
where *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 MarkdownConfig
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>