pub enum InlineKind {
Strong,
Emph,
Verbatim,
Mark,
Superscript,
Subscript,
Insert,
Delete,
}Expand description
An inline mark for Editor::wrap_range / Editor::toggle_inline — a
rich editor’s Bold / Italic / Code / … buttons. Djot spells all of them;
Markdown spells InlineKind::Strong, InlineKind::Emph,
InlineKind::Verbatim and InlineKind::Delete — GFM strikethrough is
parsed by default, so every editor this crate creates authors it — plus
InlineKind::Mark once MarkdownExtensions::highlight is set, since
==x== is otherwise text the reparse hands back unchanged. An unsupported
kind yields Error::UnsupportedFormat; Format::supports_with is the
question asked ahead of the call.
Variants§
Trait Implementations§
Source§impl Clone for InlineKind
impl Clone for InlineKind
Source§fn clone(&self) -> InlineKind
fn clone(&self) -> InlineKind
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 moreimpl Copy for InlineKind
Source§impl Debug for InlineKind
impl Debug for InlineKind
impl Eq for InlineKind
Source§impl PartialEq for InlineKind
impl PartialEq for InlineKind
impl StructuralPartialEq for InlineKind
Auto Trait Implementations§
impl Freeze for InlineKind
impl RefUnwindSafe for InlineKind
impl Send for InlineKind
impl Sync for InlineKind
impl Unpin for InlineKind
impl UnsafeUnpin for InlineKind
impl UnwindSafe for InlineKind
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