pub struct SectionRule;Expand description
The implementation of the lowering rule
SECTION_RULE, the default on every backend: a
quotation-section command outside section position is lowered as its
argument’s content, with a lines section’s \\ and \indent left out.
(A command in section position never reaches this rule: the lowering rule
of its quotation stages its quotation section and does not lower the
command node itself.)
A command written inside another quotation section’s argument
(\lines{\text{x}}), or anywhere else outside a quotation’s body, is
reported (NestedSection). A command written directly in the body of a
quote environment that does not accept it (a command of an enclosing
quotation, available in a nested quotation’s body) is part of that body’s
bare content, which the quotation’s rule reports once per bare run where
the environment reads none; this rule does not report it a second time.
§Errors
LowerError when the node carries no SectionElement, and any error
from lowering the content.
Trait Implementations§
Source§impl Clone for SectionRule
impl Clone for SectionRule
impl Copy for SectionRule
Source§impl Debug for SectionRule
impl Debug for SectionRule
Source§impl Default for SectionRule
impl Default for SectionRule
Auto Trait Implementations§
impl Forget for SectionRule
impl Freeze for SectionRule
impl Move for SectionRule
impl RefUnwindSafe for SectionRule
impl Send for SectionRule
impl Sync for SectionRule
impl Unpin for SectionRule
impl UnsafeUnpin for SectionRule
impl UnwindSafe for SectionRule
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