pub struct EnvironmentRule;Expand description
The body of ENVIRONMENT_RULE: it stages a
flm.pres.verbatim node,
carrying the verbatim kind, the display and the language, over the
characters of the environment’s body copied unchanged: a block for
{verbatimcode}, inline for {verbatimtext} (for content that is not
characters, see the module documentation, Content that is not
characters).
The body of a verbatim environment holds the group node of the verbatim
class that the parse puts around every verbatim run. The rule copies that
group’s children, not the group itself: the node the rule stages already
represents the region, and lowering the group would stage a second
flm.pres.verbatim node inside it.
The rule returns a LowerError when the node carries no
VerbatimCallable or when the content could not be staged.
Trait Implementations§
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> 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