pub struct EnvironmentRule;Expand description
The body of ENVIRONMENT_RULE: it stages a displayed
flm.pres.math-passthrough
node that carries the environment’s name, over the environment’s equation
lines: for each line, an empty flm.pres.math-text node carrying the
line’s anchor, the line’s source, the line’s tag or number, its \\ when
another line follows, and the run of whitespace that ended the line’s
source. A line’s \label and \nonumber are not written: they are data
of the line, which the math feature has already read.
The line’s source is written under the math library’s newline rule (see
the module documentation): the source of the nodes that hold no text
command is written as text, so that the rule applies to it.
The rule reads the anchors table and the counter table when they are
present; without them the lines carry no anchor and no number. It returns
a LowerError when the node carries no MathEnvironment (a node that a
parse produced for one of the six environments always carries one), when a
table cannot be read, or when a node could not be staged.
Trait Implementations§
Source§impl Clone for EnvironmentRule
impl Clone for EnvironmentRule
impl Copy for EnvironmentRule
Source§impl Debug for EnvironmentRule
impl Debug for EnvironmentRule
Source§impl Default for EnvironmentRule
impl Default for EnvironmentRule
Auto Trait Implementations§
impl Forget for EnvironmentRule
impl Freeze for EnvironmentRule
impl Move for EnvironmentRule
impl RefUnwindSafe for EnvironmentRule
impl Send for EnvironmentRule
impl Sync for EnvironmentRule
impl Unpin for EnvironmentRule
impl UnsafeUnpin for EnvironmentRule
impl UnwindSafe for EnvironmentRule
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