pub struct DefinitionNotInlinable {
pub definition: String,
pub part: NotInlinablePart,
}Expand description
Condition flm.html.definition-not-inlinable (Error): a part of a style or
script definition the document requires cannot be written into the page,
for the reason NotInlinablePart gives.
It reports a mistake in a feature’s declaration or in the host’s settings,
never anything a document can write. Reported by the regions stage
(HtmlRegionsStage), at no position in a
document. Recovery: nothing is written for that part; the definition’s other
parts, and the rest of the page, are written as usual.
One condition serves both cases because the recovery is the same;
part says which case occurred and carries its facts, so that
a host reads them rather than the message.
Fields§
§definition: StringThe definition’s identifier.
part: NotInlinablePartThe part that could not be written, and why.
Implementations§
Source§impl DefinitionNotInlinable
impl DefinitionNotInlinable
Sourcepub fn new(
definition: impl Into<String>,
part: impl Into<NotInlinablePart>,
) -> Self
pub fn new( definition: impl Into<String>, part: impl Into<NotInlinablePart>, ) -> Self
Creates a DefinitionNotInlinable condition.
Trait Implementations§
Source§impl Clone for DefinitionNotInlinable
impl Clone for DefinitionNotInlinable
Source§impl Debug for DefinitionNotInlinable
impl Debug for DefinitionNotInlinable
Source§impl DiagnosticInfo for DefinitionNotInlinable
impl DiagnosticInfo for DefinitionNotInlinable
Source§const IDENTIFIER: &'static str = "flm.html.definition-not-inlinable"
const IDENTIFIER: &'static str = "flm.html.definition-not-inlinable"
<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 DefinitionNotInlinable
impl Display for DefinitionNotInlinable
impl Eq for DefinitionNotInlinable
Source§impl PartialEq for DefinitionNotInlinable
impl PartialEq for DefinitionNotInlinable
impl StructuralPartialEq for DefinitionNotInlinable
Auto Trait Implementations§
impl Forget for DefinitionNotInlinable
impl Freeze for DefinitionNotInlinable
impl Move for DefinitionNotInlinable
impl RefUnwindSafe for DefinitionNotInlinable
impl Send for DefinitionNotInlinablewhere
RawVecInner: Send,
impl Sync for DefinitionNotInlinablewhere
RawVecInner: Sync,
impl Unpin for DefinitionNotInlinable
impl UnsafeUnpin for DefinitionNotInlinable
impl UnwindSafe for DefinitionNotInlinablewhere
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