pub struct MathGroupRule;Expand description
The rule of last resort of the math groups: it reports
MathUnprocessed (flm.math.unprocessed, an Error) at the group’s span,
and lowers the group’s content through the rules as ordinary content,
inside a flm.pres.span of role flm.math (MATH) and kind inline
or display (see the module documentation, A math group is an Error
until a feature processes mathematics).
It is marked DefaultMark::Never, so it is chosen on a backend only
where it is the sole candidate for flm.math: in a registry without a
feature that processes mathematics, or whose processing feature has no
rule for flm.math on that backend. The content is lowered as the rules
lower it anywhere: a character run is text, a comment a comment, an
unknown command its flm.pres.unknown, a text command its
flm.pres.math-text.
§Errors
Returns LowerError when a child could not be lowered or the span could
not be staged.
Trait Implementations§
Source§impl Debug for MathGroupRule
impl Debug for MathGroupRule
Source§impl Default for MathGroupRule
impl Default for MathGroupRule
Auto Trait Implementations§
impl Forget for MathGroupRule
impl Freeze for MathGroupRule
impl Move for MathGroupRule
impl RefUnwindSafe for MathGroupRule
impl Send for MathGroupRule
impl Sync for MathGroupRule
impl Unpin for MathGroupRule
impl UnsafeUnpin for MathGroupRule
impl UnwindSafe for MathGroupRule
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> 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