#[non_exhaustive]pub enum Display {
Show 23 variants
Paragraph,
Heading(u8),
ThematicBreak,
CodeBlock {
language: String,
},
Quote,
List {
start: Option<u64>,
},
Item,
Task(bool),
Table,
TableHead,
TableRow,
TableCell,
Emphasis,
Strong,
Strikethrough,
Code(String),
Link {
image: bool,
},
Text(String),
Literal(String),
SoftBreak,
HardBreak,
Tag {
name: String,
block: bool,
},
PendingReference,
}Expand description
What a provisional display node draws.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Paragraph
Heading(u8)
ThematicBreak
CodeBlock
Fenced code; its text is in Text children.
Quote
List
Item
Task(bool)
A task list marker. Only a completed tag’s body, which the final
parser classifies, produces one; while streaming, a list item’s
[ ] or [x] is drawn as text.
Table
TableHead
TableRow
TableCell
Emphasis
Strong
Strikethrough
Code(String)
Link
A link’s or image’s label, drawn as text. The destination is withheld.
Text(String)
Literal(String)
Opaque or provisional literal source text, control characters replaced.
SoftBreak
HardBreak
Tag
A complete tag, by name only: props are withheld.
PendingReference
Where a tool-output reference stands. Its number is withheld.
Trait Implementations§
impl Eq for Display
impl StructuralPartialEq for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnsafeUnpin for Display
impl UnwindSafe for Display
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