pub enum TextPiece {
Text {
formatting: TextFormatting,
text: String,
},
DoubleBraceExpression {
tag: Text,
attributes: Vec<Attribute>,
},
InternalLink {
target: Text,
options: Vec<Text>,
label: Option<Text>,
},
ListItem {
list_prefix: String,
text: Text,
},
}
Expand description
A piece of text of a section of wikitext.
Variants§
Text
Plain text to be rendered as is, with the given formatting.
DoubleBraceExpression
A double brace expression.
Fields
InternalLink
An internal link.
Fields
ListItem
A list item.
Trait Implementations§
impl Eq for TextPiece
impl StructuralPartialEq for TextPiece
Auto Trait Implementations§
impl Freeze for TextPiece
impl RefUnwindSafe for TextPiece
impl Send for TextPiece
impl Sync for TextPiece
impl Unpin for TextPiece
impl UnwindSafe for TextPiece
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