pub enum FloatCase {
NumCap,
NumOnly,
CapOnly,
Bare,
}Expand description
How a float is written on the recomposed LaTeX: whether it is numbered,
under its type’s numbering policy and its \label and \nonumber, and
whether it has a caption. The case’s name is the second argument of the
environment flmFloat: \begin{flmFloat}{figure}{NumCap}.
Variants§
NumCap
Numbered, with a caption: Figure 1: A photo.
NumOnly
Numbered, without a caption: Figure 1, written with an empty
\caption{}.
CapOnly
A caption and no number: A photo.
Bare
Neither a number nor a caption.
Implementations§
Source§impl FloatCase
impl FloatCase
Sourcepub const ALL: [FloatCase; 4]
pub const ALL: [FloatCase; 4]
The four cases, in the order in which the definition piece defines their commands.
Sourcepub fn of(numbered: bool, captioned: bool) -> FloatCase
pub fn of(numbered: bool, captioned: bool) -> FloatCase
Returns the case of a float, given whether it is numbered and whether it has a caption.
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Returns the case’s name, as the environment’s argument and the names
of the case’s two commands write it: NumCap, NumOnly, CapOnly,
Bare.
Sourcepub fn is_numbered(self) -> bool
pub fn is_numbered(self) -> bool
Returns whether a float of the case is numbered.
Trait Implementations§
impl Copy for FloatCase
impl Eq for FloatCase
impl StructuralPartialEq for FloatCase
Auto Trait Implementations§
impl Forget for FloatCase
impl Freeze for FloatCase
impl Move for FloatCase
impl RefUnwindSafe for FloatCase
impl Send for FloatCase
impl Sync for FloatCase
impl Unpin for FloatCase
impl UnsafeUnpin for FloatCase
impl UnwindSafe for FloatCase
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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