pub struct FloatRule { /* private fields */ }Expand description
The body of FLOAT_RULE.
A role and its kind tokens are feature-owned names on a presentation
payload that say what a container is, so that a stylesheet or a host’s
lowering rule can select on them
(pres::payload). A float
lowers to one flm.pres.block of role FLOAT_ROLE (flm.floats.float),
whose kind tokens are the float type’s name and NUMBERED_KIND or UNNUMBERED_KIND, which carries the
anchor of the float’s reference point where the references feature
computed one, and which holds, in this order regardless of the order in
the source:
- a
flm.pres.blockof roleCONTENT_ROLE(flm.floats.float.content): the float’s content, lowered; a paragraph that holds\caption,\labelor\nonumberbeside other content is lowered without those commands; - where the float is numbered or has a caption, a
flm.pres.blockof roleCAPTION_ROLE(flm.floats.float.caption), with the same kind tokens as the float’s block, holding one paragraph, the line under the content. For a numbered float, the paragraph holds aflm.pres.spanof roleNUMBER_ROLEwith the type’s caption name, a no-break space and the number, followed, where the float has a caption, by:and the caption’s full content (Figure 1: A photo). For an unnumbered float, it holds the caption alone.
The float is numbered where its type’s numbering policy numbers it,
given its \label and \nonumber, and the counter table holds its
number (float_number): the number is written from the table when the
float is lowered, in the type’s counter style without its words. A float
that the run could not number, because the numbering feature is not
registered, is unnumbered; read_float reports it.
read_float, which every rule lowering a float calls, reports every
problem of the float’s body.
At every float the rule requires the feature’s style identifier
STYLE (flm.floats.style), which each backend resolves as it
resolves requirements: the stylesheet on the html backend, the
definition pieces delivering it on the latex-rendered backend, nothing
on the text backend.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FloatRule
impl !UnwindSafe for FloatRule
impl Forget for FloatRule
impl Freeze for FloatRule
impl Move for FloatRule
impl Send for FloatRule
impl Sync for FloatRule
impl Unpin for FloatRule
impl UnsafeUnpin for FloatRulewhere
*const ArcInner<Handlers> is !null: UnsafeUnpin,
PhantomData<ArcInner<Handlers>>: UnsafeUnpin,
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