pub struct FloatFields<'t> {
pub float_type: &'t FloatType,
pub body: FloatBody<'t>,
pub caption: Option<Caption<'t>>,
pub numbered: bool,
}Expand description
A float’s body as float_fields reads it, without reporting anything:
the float type, the commands and the content, the caption, and whether the
type’s numbering policy numbers the float.
Fields§
§float_type: &'t FloatTypeThe float’s type.
body: FloatBody<'t>The body’s commands and content.
caption: Option<Caption<'t>>The float’s caption, read from its first \caption. None where
the body holds no \caption.
numbered: boolWhether the type’s numbering policy numbers the float, given its
commands (FloatNumbering::numbers): a float with at least one
\label counts as labeled, and a float with at least one \nonumber
as marked unnumbered. Whether the float is shown with a number also
depends on the output: without the numbering feature, the plain-text
and HTML outputs show it without a number (NoNumbering), while the
recomposed LaTeX still writes it as numbered and LaTeX numbers it.
Trait Implementations§
Source§impl<'t> Clone for FloatFields<'t>
impl<'t> Clone for FloatFields<'t>
Auto Trait Implementations§
impl<'t> !RefUnwindSafe for FloatFields<'t>
impl<'t> !UnwindSafe for FloatFields<'t>
impl<'t> Forget for FloatFields<'t>
impl<'t> Freeze for FloatFields<'t>where
&'t FloatType: Freeze,
*const u8 is !null: Freeze,
PhantomData<NodeRef<'t, Flm>>: Freeze,
&'t NodeTree<Flm>: Freeze,
PhantomData<WrittenPiece<'t>>: Freeze,
PhantomData<CaptionProblem>: Freeze,
impl<'t> Move for FloatFields<'t>
impl<'t> Send for FloatFields<'t>
impl<'t> Sync for FloatFields<'t>
impl<'t> Unpin for FloatFields<'t>
impl<'t> UnsafeUnpin for FloatFields<'t>where
&'t FloatType: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<NodeRef<'t, Flm>>: UnsafeUnpin,
&'t NodeTree<Flm>: UnsafeUnpin,
PhantomData<WrittenPiece<'t>>: UnsafeUnpin,
PhantomData<CaptionProblem>: 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> 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