#[non_exhaustive]pub enum MarkdownStyle {
Normal,
RstCompat,
}
Expand description
The type of markdown generated by Docs::to_markdown()
Note that this only controls markdown generated by this code. Existing markdown in the Rust documentation will not be sanitized in any way.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
Regular markdown with no specific extensions, compatible with most common flavors
RstCompat
Markdown that can be losslessly converted to ReStructuredText
Trait Implementations§
source§impl Clone for MarkdownStyle
impl Clone for MarkdownStyle
source§fn clone(&self) -> MarkdownStyle
fn clone(&self) -> MarkdownStyle
Returns a copy 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 MarkdownStyle
impl Debug for MarkdownStyle
source§impl PartialEq for MarkdownStyle
impl PartialEq for MarkdownStyle
impl Eq for MarkdownStyle
impl StructuralPartialEq for MarkdownStyle
Auto Trait Implementations§
impl Freeze for MarkdownStyle
impl RefUnwindSafe for MarkdownStyle
impl Send for MarkdownStyle
impl Sync for MarkdownStyle
impl Unpin for MarkdownStyle
impl UnwindSafe for MarkdownStyle
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)