pub enum Inline {
Text {
id: NodeId,
value: String,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Break {
id: NodeId,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Emphasis {
id: NodeId,
children: Vec<Inline>,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Strong {
id: NodeId,
children: Vec<Inline>,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Code {
id: NodeId,
value: String,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Link {
id: NodeId,
url: String,
children: Vec<Inline>,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Note {
id: NodeId,
blocks: Vec<Block>,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Strikethrough {
id: NodeId,
children: Vec<Inline>,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
Span {
id: NodeId,
children: Vec<Inline>,
attributes: Attributes,
position: Option<SourcePos>,
span: Option<SourceSpan>,
},
}Expand description
An inline element: participates in line layout.
Variants§
Text
A run of text. The frontend has already decoded entities; the engine sees plain Unicode.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Break
A hard line break: the line ends here, and what follows stays in the same block. It holds no text.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Emphasis
*emphasis*: italic, in the default sheet.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Strong
**strong**: bold, in the default sheet.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Code
`code`: monospace, and never hyphenated.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Link
A hyperlink. The text lays out; the url is for painters that can express one.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Note
A footnote. Its reference sits in the line where it was written, and its blocks are set at the foot of the page that reference lands on.
The blocks are the note itself, so a note holds paragraphs, lists and everything else a blockquote holds. The engine sets the reference and the number beside the note from the cascade, so neither is in the tree.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Strikethrough
~~struck~~: a line through it, in the default sheet.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Span
A run the sheet names, and nothing else. It carries no meaning of its own, so the built-in sheet styles it like the text around it and a class on it is what reaches it.
Fields
attributes: AttributesWhat a sheet names it by.
span: Option<SourceSpan>The bytes of that source it was read from.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inline
impl<'de> Deserialize<'de> for Inline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnsafeUnpin for Inline
impl UnwindSafe for Inline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.