pub enum SubText {
Char(char),
Str(String),
Cmd(String, Vec<SubText>),
}Expand description
A part of a line, either some texts or a command.
Variants§
Char(char)
Special character
Str(String)
Raw texts.
Cmd(String, Vec<SubText>)
A TeX-like command in the text.
Trait Implementations§
impl Eq for SubText
impl StructuralPartialEq for SubText
Auto Trait Implementations§
impl Freeze for SubText
impl RefUnwindSafe for SubText
impl Send for SubText
impl Sync for SubText
impl Unpin for SubText
impl UnwindSafe for SubText
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