pub enum TextItem {
Str(String),
Space,
ControlSpace,
NoBreakSpace,
Symbol(&'static str),
Nested(TextStyle, TextRun),
Math(Box<MathNode>),
}Expand description
One item of a text-mode run (\text{…} body).
Variants§
Str(String)
A maximal run of plain characters (no whitespace).
Space
Collapsed inter-word space.
ControlSpace
A \ control space.
NoBreakSpace
A ~ no-break space.
Symbol(&'static str)
A text symbol such as \ldots, \quad, \qquad.
Nested(TextStyle, TextRun)
A nested text command with its own style.
Math(Box<MathNode>)
Math embedded in text with \(…\) or $…$.
Trait Implementations§
impl Eq for TextItem
impl StructuralPartialEq for TextItem
Auto Trait Implementations§
impl Forget for TextItem
impl Freeze for TextItem
impl RefUnwindSafe for TextItem
impl Send for TextItem
impl Sync for TextItem
impl Unpin for TextItem
impl UnsafeUnpin for TextItem
impl UnwindSafe for TextItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more