#[repr(u8)]pub enum MarkdownOwnership {
Whole {
blocks: Vec<MarkdownBlock>,
},
Selected {
selectors: Vec<MarkdownSelector>,
},
}Expand description
Ownership mode for a Markdown document.
Variants§
Whole
Manage every block in the document.
Fields
§
blocks: Vec<MarkdownBlock>All Markdown blocks in the fully managed document.
Selected
Manage only the selected regions, preserving the rest of the source.
Fields
§
selectors: Vec<MarkdownSelector>The selected regions to manage.
Implementations§
Source§impl MarkdownOwnership
impl MarkdownOwnership
Sourceconst fn is_partial(&self) -> bool
const fn is_partial(&self) -> bool
Whether this ownership leaves any part of the document user-owned.
Trait Implementations§
Source§impl Clone for MarkdownOwnership
impl Clone for MarkdownOwnership
Source§fn clone(&self) -> MarkdownOwnership
fn clone(&self) -> MarkdownOwnership
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MarkdownOwnership
impl Debug for MarkdownOwnership
Auto Trait Implementations§
impl Freeze for MarkdownOwnership
impl RefUnwindSafe for MarkdownOwnership
impl Send for MarkdownOwnership
impl Sync for MarkdownOwnership
impl Unpin for MarkdownOwnership
impl UnsafeUnpin for MarkdownOwnership
impl UnwindSafe for MarkdownOwnership
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