pub struct RegionNotFound {
pub backend: String,
pub rule: String,
pub element: String,
pub detail: String,
}Expand description
The error that is reported when a lowering rule calls
Lowerer::lower_region
for a node region that does not exist (id
flm.lowering.region-not-found).
A node region is an argument or a content slot of a node
(NodeRegion). A rule calls
lower_region to lower a node region of another node at the position of
its own node, for instance the content that a
ContentPointer refers to. The node region does
not exist when no document tree and no synthesized value that is being
lowered has the given tree identifier, when that tree has no node at the
given address, or when the node has no such argument or slot.
A document cannot cause this error: it is caused by the stage or the rule that created the reference to the node region, for instance a stage that built a synthesized value containing a content pointer.
Reported by the lowering driver at the node whose rule called
lower_region. The node is replaced by a flm.pres.unsupported node
without children. The function
lower_content_pointer handles this error
differently: it reports the error at the content pointer node and returns
an empty list of staged nodes, so that the content pointer node is not
replaced.
Fields§
§backend: StringThe name of the backend.
rule: StringThe name of the lowering rule that called lower_region.
element: StringThe name of the element of the node whose rule called lower_region.
detail: StringA text that states which part of the node region is missing: the tree, the node, or the argument or slot.
Implementations§
Trait Implementations§
Source§impl Clone for RegionNotFound
impl Clone for RegionNotFound
Source§impl Debug for RegionNotFound
impl Debug for RegionNotFound
Source§impl DiagnosticInfo for RegionNotFound
impl DiagnosticInfo for RegionNotFound
Source§const IDENTIFIER: &'static str = "flm.lowering.region-not-found"
const IDENTIFIER: &'static str = "flm.lowering.region-not-found"
<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 RegionNotFound
impl Display for RegionNotFound
impl Eq for RegionNotFound
Source§impl PartialEq for RegionNotFound
impl PartialEq for RegionNotFound
impl StructuralPartialEq for RegionNotFound
Auto Trait Implementations§
impl Forget for RegionNotFound
impl Freeze for RegionNotFound
impl Move for RegionNotFound
impl RefUnwindSafe for RegionNotFound
impl Send for RegionNotFound
impl Sync for RegionNotFound
impl Unpin for RegionNotFound
impl UnsafeUnpin for RegionNotFound
impl UnwindSafe for RegionNotFound
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