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
DynBlock(DynBlock<'a>)
FnDef(FnDef<'a>)
FnRef(FnRef<'a>)
Headline
InlineCall(InlineCall<'a>)
InlineSrc(InlineSrc<'a>)
Keyword(Keyword<'a>)
Link(Link<'a>)
List(List)
ListItem(ListItem<'a>)
Macros(Macros<'a>)
Snippet(Snippet<'a>)
Text
Paragraph
Rule(Rule)
Timestamp(Timestamp<'a>)
Target(Target<'a>)
Bold
Strike
Italic
Underline
Verbatim
Code
Comment(Comment<'a>)
FixedWidth(FixedWidth<'a>)
Title(Title<'a>)
Table(Table<'a>)
TableRow(TableRow)
TableCell(TableCell)
Implementations§
Source§impl Element<'_>
impl Element<'_>
pub fn is_container(&self) -> bool
pub fn into_owned(self) -> Element<'static>
Trait Implementations§
Source§impl<'a> From<CenterBlock<'a>> for Element<'a>
impl<'a> From<CenterBlock<'a>> for Element<'a>
Source§fn from(ele: CenterBlock<'a>) -> Element<'a>
fn from(ele: CenterBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<CommentBlock<'a>> for Element<'a>
impl<'a> From<CommentBlock<'a>> for Element<'a>
Source§fn from(ele: CommentBlock<'a>) -> Element<'a>
fn from(ele: CommentBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<ExampleBlock<'a>> for Element<'a>
impl<'a> From<ExampleBlock<'a>> for Element<'a>
Source§fn from(ele: ExampleBlock<'a>) -> Element<'a>
fn from(ele: ExampleBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<ExportBlock<'a>> for Element<'a>
impl<'a> From<ExportBlock<'a>> for Element<'a>
Source§fn from(ele: ExportBlock<'a>) -> Element<'a>
fn from(ele: ExportBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<FixedWidth<'a>> for Element<'a>
impl<'a> From<FixedWidth<'a>> for Element<'a>
Source§fn from(ele: FixedWidth<'a>) -> Element<'a>
fn from(ele: FixedWidth<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<InlineCall<'a>> for Element<'a>
impl<'a> From<InlineCall<'a>> for Element<'a>
Source§fn from(ele: InlineCall<'a>) -> Element<'a>
fn from(ele: InlineCall<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<QuoteBlock<'a>> for Element<'a>
impl<'a> From<QuoteBlock<'a>> for Element<'a>
Source§fn from(ele: QuoteBlock<'a>) -> Element<'a>
fn from(ele: QuoteBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<SourceBlock<'a>> for Element<'a>
impl<'a> From<SourceBlock<'a>> for Element<'a>
Source§fn from(ele: SourceBlock<'a>) -> Element<'a>
fn from(ele: SourceBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<SpecialBlock<'a>> for Element<'a>
impl<'a> From<SpecialBlock<'a>> for Element<'a>
Source§fn from(ele: SpecialBlock<'a>) -> Element<'a>
fn from(ele: SpecialBlock<'a>) -> Element<'a>
Converts to this type from the input type.
Source§impl<'a> From<VerseBlock<'a>> for Element<'a>
impl<'a> From<VerseBlock<'a>> for Element<'a>
Source§fn from(ele: VerseBlock<'a>) -> Element<'a>
fn from(ele: VerseBlock<'a>) -> Element<'a>
Converts to this type from the input type.
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> 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