pub struct TextLatexRule;Expand description
The body of TEXT_LATEX_RULE: a text command of math mode written as a
macro construct of the same name, over its argument lowered through the
ordinary rules.
The argument is document text, so it is written as text is written anywhere else: the emitter escapes it, a user definition used in it is written as a call with its definition for the style file, and mathematics inside it is written by the rule of the feature that processes mathematics. Copying the command’s source instead would leave out all three.
\text is the only command of the list that the LaTeX kernel does not
define, so the rule requests the package amsmath where it writes one
(AMSMATH_COMMAND).
When the argument is missing (a parse recovery left it absent and the parse
reported it), the macro is written with an empty argument and nothing more
is reported. The rule returns a LowerError when the node carries no
MathTextCommand or when a node could not be lowered or staged.
Trait Implementations§
Source§impl Clone for TextLatexRule
impl Clone for TextLatexRule
impl Copy for TextLatexRule
Source§impl Debug for TextLatexRule
impl Debug for TextLatexRule
Source§impl Default for TextLatexRule
impl Default for TextLatexRule
Auto Trait Implementations§
impl Forget for TextLatexRule
impl Freeze for TextLatexRule
impl Move for TextLatexRule
impl RefUnwindSafe for TextLatexRule
impl Send for TextLatexRule
impl Sync for TextLatexRule
impl Unpin for TextLatexRule
impl UnsafeUnpin for TextLatexRule
impl UnwindSafe for TextLatexRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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