pub struct BadStyleValue {
pub detail: String,
}Expand description
The error that is reported when a style token has a missing or an invalid
value (flm.cells.bad-style-value).
A value is written in braces directly after the name of a cell style, and
each style name takes at most one value. A cell style of the structural
form (StyleForm::Structural) requires
one of the values of its Parameter, as in
align{left}, head{column} or rule{below}. A cell style of the fixed
form (StyleForm::Fixed), such as l, H or
green, takes no value.
Reported by the lowering rule of the cells environment, on every
backend, at the token. The token is ignored, and the other tokens of the
cell are used. A value that does not follow a style name is reported at
the value, and ignored.
Fields§
§detail: StringThe message of the diagnostic. It states what is wrong with the value.
Implementations§
Source§impl BadStyleValue
impl BadStyleValue
Sourcepub fn new(detail: impl Into<String>) -> Self
pub fn new(detail: impl Into<String>) -> Self
Creates a BadStyleValue condition.
Trait Implementations§
Source§impl Clone for BadStyleValue
impl Clone for BadStyleValue
Source§impl Debug for BadStyleValue
impl Debug for BadStyleValue
Source§impl DiagnosticInfo for BadStyleValue
impl DiagnosticInfo for BadStyleValue
Source§const IDENTIFIER: &'static str = "flm.cells.bad-style-value"
const IDENTIFIER: &'static str = "flm.cells.bad-style-value"
<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 BadStyleValue
impl Display for BadStyleValue
impl Eq for BadStyleValue
Source§impl PartialEq for BadStyleValue
impl PartialEq for BadStyleValue
impl StructuralPartialEq for BadStyleValue
Auto Trait Implementations§
impl Forget for BadStyleValue
impl Freeze for BadStyleValue
impl Move for BadStyleValue
impl RefUnwindSafe for BadStyleValue
impl Send for BadStyleValuewhere
RawVecInner: Send,
impl Sync for BadStyleValuewhere
RawVecInner: Sync,
impl Unpin for BadStyleValue
impl UnsafeUnpin for BadStyleValue
impl UnwindSafe for BadStyleValuewhere
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