pub struct NestingTooDeep {
pub detail: String,
}Expand description
Condition flm.text.nesting-too-deep: a lowered tree, counting the trees
it places, nests deeper than the emitter’s depth limit, which the walk
reads when it starts from the stack that remains on its thread (see the
module documentation). The detail gives the limit, in levels.
A tree that came from a parsed document never comes near the limit on a thread of the library, since the parse refuses far shallower nesting. A lowered tree can, when its lowering rules stage (build into the lowered tree) levels of their own, or when placed trees form a long chain; the levels of the placed trees count toward the depth of the tree that places them.
Every recursive walk of a tree in this library is bounded in this way, and each reports its own condition, so a diagnostic tells which step reached its limit. Reported at error severity, once, at the root of the top-level tree (or piece). Recovery: that tree prints nothing.
Fields§
§detail: StringThe limit that was exceeded, as text.
Implementations§
Source§impl NestingTooDeep
impl NestingTooDeep
Sourcepub fn new(detail: impl Into<String>) -> Self
pub fn new(detail: impl Into<String>) -> Self
Creates a NestingTooDeep condition.
Trait Implementations§
Source§impl Clone for NestingTooDeep
impl Clone for NestingTooDeep
Source§impl Debug for NestingTooDeep
impl Debug for NestingTooDeep
Source§impl DiagnosticInfo for NestingTooDeep
impl DiagnosticInfo for NestingTooDeep
Source§const IDENTIFIER: &'static str = "flm.text.nesting-too-deep"
const IDENTIFIER: &'static str = "flm.text.nesting-too-deep"
<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 NestingTooDeep
impl Display for NestingTooDeep
impl Eq for NestingTooDeep
Source§impl PartialEq for NestingTooDeep
impl PartialEq for NestingTooDeep
impl StructuralPartialEq for NestingTooDeep
Auto Trait Implementations§
impl Forget for NestingTooDeep
impl Freeze for NestingTooDeep
impl Move for NestingTooDeep
impl RefUnwindSafe for NestingTooDeep
impl Send for NestingTooDeepwhere
RawVecInner: Send,
impl Sync for NestingTooDeepwhere
RawVecInner: Sync,
impl Unpin for NestingTooDeep
impl UnsafeUnpin for NestingTooDeep
impl UnwindSafe for NestingTooDeepwhere
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