pub enum GraphInline {
Show 16 variants
Code(Option<Lang>, String),
Emph(GraphInlines),
Image(LibraryUrl, Title, GraphInlines),
LineBreak,
Link(LibraryUrl, Title, LinkType, GraphInlines),
Math(String),
RawInline(Lang, String),
SmallCaps(GraphInlines),
SoftBreak,
Space,
Str(String),
Strikeout(GraphInlines),
Strong(GraphInlines),
Subscript(GraphInlines),
Superscript(GraphInlines),
Underline(GraphInlines),
}Variants§
Code(Option<Lang>, String)
Emph(GraphInlines)
Image(LibraryUrl, Title, GraphInlines)
LineBreak
Link(LibraryUrl, Title, LinkType, GraphInlines)
Math(String)
RawInline(Lang, String)
SmallCaps(GraphInlines)
SoftBreak
Space
Str(String)
Strikeout(GraphInlines)
Strong(GraphInlines)
Subscript(GraphInlines)
Superscript(GraphInlines)
Underline(GraphInlines)
Implementations§
Source§impl GraphInline
impl GraphInline
pub fn from_string(str: &str) -> GraphInlines
pub fn to_markdown(&self, options: &MarkdownOptions) -> String
pub fn plain_text(&self) -> String
pub fn ref_keys(&self) -> Vec<Key>
pub fn normalize(&self, context: impl InlinesContext) -> GraphInline
pub fn change_key(&self, target_key: &Key, updated_key: &Key) -> GraphInline
pub fn is_ref(&self) -> bool
Trait Implementations§
Source§impl Clone for GraphInline
impl Clone for GraphInline
Source§fn clone(&self) -> GraphInline
fn clone(&self) -> GraphInline
Returns a duplicate 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 GraphInline
impl Debug for GraphInline
Source§impl From<&str> for GraphInline
impl From<&str> for GraphInline
Source§impl From<String> for GraphInline
impl From<String> for GraphInline
Source§impl PartialEq for GraphInline
impl PartialEq for GraphInline
impl StructuralPartialEq for GraphInline
Auto Trait Implementations§
impl Freeze for GraphInline
impl RefUnwindSafe for GraphInline
impl Send for GraphInline
impl Sync for GraphInline
impl Unpin for GraphInline
impl UnwindSafe for GraphInline
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more