Enum Element

Source
pub enum Element<'a> {
Show 44 variants SpecialBlock(SpecialBlock<'a>), QuoteBlock(QuoteBlock<'a>), CenterBlock(CenterBlock<'a>), VerseBlock(VerseBlock<'a>), CommentBlock(CommentBlock<'a>), ExampleBlock(ExampleBlock<'a>), ExportBlock(ExportBlock<'a>), SourceBlock(SourceBlock<'a>), BabelCall(BabelCall<'a>), Section, Clock(Clock<'a>), Cookie(Cookie<'a>), RadioTarget, Drawer(Drawer<'a>), Document { pre_blank: usize, }, DynBlock(DynBlock<'a>), FnDef(FnDef<'a>), FnRef(FnRef<'a>), Headline { level: usize, }, InlineCall(InlineCall<'a>), InlineSrc(InlineSrc<'a>), Keyword(Keyword<'a>), Link(Link<'a>), List(List), ListItem(ListItem<'a>), Macros(Macros<'a>), Snippet(Snippet<'a>), Text { value: Cow<'a, str>, }, Paragraph { post_blank: usize, }, Rule(Rule), Timestamp(Timestamp<'a>), Target(Target<'a>), Bold, Strike, Italic, Underline, Verbatim { value: Cow<'a, str>, }, Code { value: Cow<'a, str>, }, Comment(Comment<'a>), FixedWidth(FixedWidth<'a>), Title(Title<'a>), Table(Table<'a>), TableRow(TableRow), TableCell(TableCell),
}
Expand description

Element Enum

Variants§

§

SpecialBlock(SpecialBlock<'a>)

§

QuoteBlock(QuoteBlock<'a>)

§

CenterBlock(CenterBlock<'a>)

§

VerseBlock(VerseBlock<'a>)

§

CommentBlock(CommentBlock<'a>)

§

ExampleBlock(ExampleBlock<'a>)

§

ExportBlock(ExportBlock<'a>)

§

SourceBlock(SourceBlock<'a>)

§

BabelCall(BabelCall<'a>)

§

Section

§

Clock(Clock<'a>)

§

Cookie(Cookie<'a>)

§

RadioTarget

§

Drawer(Drawer<'a>)

§

Document

Fields

§pre_blank: usize
§

DynBlock(DynBlock<'a>)

§

FnDef(FnDef<'a>)

§

FnRef(FnRef<'a>)

§

Headline

Fields

§level: usize
§

InlineCall(InlineCall<'a>)

§

InlineSrc(InlineSrc<'a>)

§

Keyword(Keyword<'a>)

§

List(List)

§

ListItem(ListItem<'a>)

§

Macros(Macros<'a>)

§

Snippet(Snippet<'a>)

§

Text

Fields

§value: Cow<'a, str>
§

Paragraph

Fields

§post_blank: usize
§

Rule(Rule)

§

Timestamp(Timestamp<'a>)

§

Target(Target<'a>)

§

Bold

§

Strike

§

Italic

§

Underline

§

Verbatim

Fields

§value: Cow<'a, str>
§

Code

Fields

§value: Cow<'a, str>
§

Comment(Comment<'a>)

§

FixedWidth(FixedWidth<'a>)

§

Title(Title<'a>)

§

Table(Table<'a>)

§

TableRow(TableRow)

§

TableCell(TableCell)

Implementations§

Source§

impl Element<'_>

Source

pub fn is_container(&self) -> bool

Source

pub fn into_owned(self) -> Element<'static>

Trait Implementations§

Source§

impl<'a> Debug for Element<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<BabelCall<'a>> for Element<'a>

Source§

fn from(ele: BabelCall<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<CenterBlock<'a>> for Element<'a>

Source§

fn from(ele: CenterBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Clock<'a>> for Element<'a>

Source§

fn from(ele: Clock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Comment<'a>> for Element<'a>

Source§

fn from(ele: Comment<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<CommentBlock<'a>> for Element<'a>

Source§

fn from(ele: CommentBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Cookie<'a>> for Element<'a>

Source§

fn from(ele: Cookie<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Drawer<'a>> for Element<'a>

Source§

fn from(ele: Drawer<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<DynBlock<'a>> for Element<'a>

Source§

fn from(ele: DynBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<ExampleBlock<'a>> for Element<'a>

Source§

fn from(ele: ExampleBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<ExportBlock<'a>> for Element<'a>

Source§

fn from(ele: ExportBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<FixedWidth<'a>> for Element<'a>

Source§

fn from(ele: FixedWidth<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<FnDef<'a>> for Element<'a>

Source§

fn from(ele: FnDef<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<FnRef<'a>> for Element<'a>

Source§

fn from(ele: FnRef<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<InlineCall<'a>> for Element<'a>

Source§

fn from(ele: InlineCall<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<InlineSrc<'a>> for Element<'a>

Source§

fn from(ele: InlineSrc<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Keyword<'a>> for Element<'a>

Source§

fn from(ele: Keyword<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Link<'a>> for Element<'a>

Source§

fn from(ele: Link<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<List> for Element<'a>

Source§

fn from(ele: List) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<ListItem<'a>> for Element<'a>

Source§

fn from(ele: ListItem<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Macros<'a>> for Element<'a>

Source§

fn from(ele: Macros<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<QuoteBlock<'a>> for Element<'a>

Source§

fn from(ele: QuoteBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Rule> for Element<'a>

Source§

fn from(ele: Rule) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Snippet<'a>> for Element<'a>

Source§

fn from(ele: Snippet<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<SourceBlock<'a>> for Element<'a>

Source§

fn from(ele: SourceBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<SpecialBlock<'a>> for Element<'a>

Source§

fn from(ele: SpecialBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Table<'a>> for Element<'a>

Source§

fn from(ele: Table<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<TableRow> for Element<'a>

Source§

fn from(ele: TableRow) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Target<'a>> for Element<'a>

Source§

fn from(ele: Target<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Timestamp<'a>> for Element<'a>

Source§

fn from(ele: Timestamp<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<Title<'a>> for Element<'a>

Source§

fn from(ele: Title<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> From<VerseBlock<'a>> for Element<'a>

Source§

fn from(ele: VerseBlock<'a>) -> Element<'a>

Converts to this type from the input type.
Source§

impl<'a> Serialize for Element<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Element<'a>

§

impl<'a> RefUnwindSafe for Element<'a>

§

impl<'a> Send for Element<'a>

§

impl<'a> Sync for Element<'a>

§

impl<'a> Unpin for Element<'a>

§

impl<'a> UnwindSafe for Element<'a>

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.