pub struct BadPlacement {
pub detail: String,
}Expand description
The error that is reported when the placement of a \cell or the mapping
of a \celldata is not valid (flm.cells.bad-placement).
The placement of a \cell is its optional argument […]. It has the form
[COL] or [ROW;COL]. Each part is a number, a name declared with
\rownames or \colnames, . or nothing for the current row or column,
or \merge{RANGE} for a cell that spans several rows or columns, as in
\cell[2;3]{…} or \cell[1;\merge{3-4}]{…}.
The mapping of a \celldata is its optional argument […]. It has the
form [COLS] or [ROWS;COLS]. Each part is a comma-separated list of
numbers, names, ranges and \merge{RANGE}, as in
\celldata[3,2,1]{A & B & C} or \celldata[2-5]{A & B & C & D}.
A range has the form 2-4, or 2+3 for three rows or columns starting
at 2. Inside \merge, a range can also be a contiguous union such as
1,2,3.
Rows and columns are numbered from 1, and a number may be at most
MAX_CELLS_POSITIONS.
The documentation of the cells feature
describes placements, mappings and ranges in full.
Reported by the lowering rule of the cells environment, on every
backend, at the \cell or the \celldata. The message states what is
wrong. An invalid placement is ignored: the cell goes to the current row
and column, or, for a \cell that is an entry of a \celldata, to the
position of that entry. An invalid mapping is ignored as a whole, and the
data of the \celldata is placed from the current row and column on.
Fields§
§detail: StringThe message of the diagnostic. It states what is wrong with the placement or the mapping.
Implementations§
Source§impl BadPlacement
impl BadPlacement
Sourcepub fn new(detail: impl Into<String>) -> Self
pub fn new(detail: impl Into<String>) -> Self
Creates a BadPlacement condition.
Trait Implementations§
Source§impl Clone for BadPlacement
impl Clone for BadPlacement
Source§impl Debug for BadPlacement
impl Debug for BadPlacement
Source§impl DiagnosticInfo for BadPlacement
impl DiagnosticInfo for BadPlacement
Source§const IDENTIFIER: &'static str = "flm.cells.bad-placement"
const IDENTIFIER: &'static str = "flm.cells.bad-placement"
<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 BadPlacement
impl Display for BadPlacement
impl Eq for BadPlacement
Source§impl PartialEq for BadPlacement
impl PartialEq for BadPlacement
impl StructuralPartialEq for BadPlacement
Auto Trait Implementations§
impl Forget for BadPlacement
impl Freeze for BadPlacement
impl Move for BadPlacement
impl RefUnwindSafe for BadPlacement
impl Send for BadPlacementwhere
RawVecInner: Send,
impl Sync for BadPlacementwhere
RawVecInner: Sync,
impl Unpin for BadPlacement
impl UnsafeUnpin for BadPlacement
impl UnwindSafe for BadPlacementwhere
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