pub struct NoRule {
pub backend: String,
pub element: String,
}Expand description
The error that is reported when the lowering reaches a node of an element
that the backend cannot render and that is not listed as unrenderable in
the plan request (id flm.lowering.no-rule).
The backend does not write the element natively, and no lowering rule is
selected for the element. Building the plan checks that the backend can
render every element that can occur in a document
(FlmRegistry::occurrable_elements).
This error can therefore occur only for an element that this check does
not cover, for instance a template placeholder that remains in the tree
after the expansion of user definitions.
A document cannot cause this error: it is caused by a fault of the
program, in a feature, a rewrite or an extension. This is the difference
from UnsupportedElement, which is reported for an element that the
plan request lists as unrenderable, and whose message is addressed to the
author of the document.
Reported by the lowering driver at the node. The node is replaced by a
flm.pres.unsupported node without children.
Fields§
§backend: StringThe name of the backend.
element: StringThe name of the element.
Implementations§
Trait Implementations§
Source§impl DiagnosticInfo for NoRule
impl DiagnosticInfo for NoRule
Source§const IDENTIFIER: &'static str = "flm.lowering.no-rule"
const IDENTIFIER: &'static str = "flm.lowering.no-rule"
<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
impl Eq for NoRule
impl StructuralPartialEq for NoRule
Auto Trait Implementations§
impl Forget for NoRule
impl Freeze for NoRule
impl Move for NoRule
impl RefUnwindSafe for NoRule
impl Send for NoRulewhere
RawVecInner: Send,
impl Sync for NoRulewhere
RawVecInner: Sync,
impl Unpin for NoRule
impl UnsafeUnpin for NoRule
impl UnwindSafe for NoRulewhere
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