pub struct CaptionUnknownKey {
pub key: String,
}Expand description
The error that is reported when the optional argument of \caption
contains a key other than alt (flm.floats.caption-unknown-key).
The optional argument of \caption contains key-value pairs. Its only key
is alt, which gives the alternative text of the caption, as in
\caption[alt=A plot]{A plot of the data, before and after.}. A reference
to an unnumbered float shows the alternative text in place of the caption.
Unlike in LaTeX, the optional argument does not give a short caption.
Reported by the lowering rule of the float, on every backend, at the
\caption. The unknown key is ignored. A valid alt key in the same
argument is still used.
Fields§
§key: StringThe unknown key, as written. When the optional argument cannot be read as key-value pairs, this is the text of the whole argument.
Implementations§
Source§impl CaptionUnknownKey
impl CaptionUnknownKey
Sourcepub fn new(key: impl Into<String>) -> Self
pub fn new(key: impl Into<String>) -> Self
Creates a CaptionUnknownKey condition.
Trait Implementations§
Source§impl Clone for CaptionUnknownKey
impl Clone for CaptionUnknownKey
Source§impl Debug for CaptionUnknownKey
impl Debug for CaptionUnknownKey
Source§impl DiagnosticInfo for CaptionUnknownKey
impl DiagnosticInfo for CaptionUnknownKey
Source§const IDENTIFIER: &'static str = "flm.floats.caption-unknown-key"
const IDENTIFIER: &'static str = "flm.floats.caption-unknown-key"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Source§impl Display for CaptionUnknownKey
impl Display for CaptionUnknownKey
impl Eq for CaptionUnknownKey
Source§impl PartialEq for CaptionUnknownKey
impl PartialEq for CaptionUnknownKey
impl StructuralPartialEq for CaptionUnknownKey
Auto Trait Implementations§
impl Forget for CaptionUnknownKey
impl Freeze for CaptionUnknownKey
impl Move for CaptionUnknownKey
impl RefUnwindSafe for CaptionUnknownKey
impl Send for CaptionUnknownKeywhere
RawVecInner: Send,
impl Sync for CaptionUnknownKeywhere
RawVecInner: Sync,
impl Unpin for CaptionUnknownKey
impl UnsafeUnpin for CaptionUnknownKey
impl UnwindSafe for CaptionUnknownKeywhere
RawVecInner: UnwindSafe,
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> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).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