pub struct RefusedInMath {
pub attribute: String,
pub sequence: String,
}Expand description
Condition flm.html.refused-in-math (Error): an attribute value the
emitter would write inside a formula contains a sequence that would break
the formula.
Content inside a formula is written as HTML inside the formula’s LaTeX
(the module documentation). The formula renderer
searches all the characters of the formula, attribute values included, for
the closing delimiter the emitter wrote and for its <tex-html> tag. Text
holding one of those sequences is broken up with an empty element where it
is written; an attribute value cannot be broken up that way, because an
element written into it would reach the reader as characters.
Reported at the node’s position, or at the formula’s when the element belongs to no node of its own. Recovery: that one attribute is left out, and everything else about the element, its content above all, is written as usual.
Fields§
§attribute: StringThe attribute that was left out, by the name it would have been
written under: id, class, a data-flm-… attribute, or an attribute
a lowering rule asked for.
sequence: StringThe characters in the value that the formula renderer would read as
the end of the formula or as its own tag: the closing delimiter of the
surrounding formula (\), \] or \end{<env>}), <tex-html or
</tex-html.
Implementations§
Source§impl RefusedInMath
impl RefusedInMath
Trait Implementations§
Source§impl Clone for RefusedInMath
impl Clone for RefusedInMath
Source§impl Debug for RefusedInMath
impl Debug for RefusedInMath
Source§impl DiagnosticInfo for RefusedInMath
impl DiagnosticInfo for RefusedInMath
Source§const IDENTIFIER: &'static str = "flm.html.refused-in-math"
const IDENTIFIER: &'static str = "flm.html.refused-in-math"
<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 RefusedInMath
impl Display for RefusedInMath
impl Eq for RefusedInMath
Source§impl PartialEq for RefusedInMath
impl PartialEq for RefusedInMath
impl StructuralPartialEq for RefusedInMath
Auto Trait Implementations§
impl Forget for RefusedInMath
impl Freeze for RefusedInMath
impl Move for RefusedInMath
impl RefUnwindSafe for RefusedInMath
impl Send for RefusedInMath
impl Sync for RefusedInMath
impl Unpin for RefusedInMath
impl UnsafeUnpin for RefusedInMath
impl UnwindSafe for RefusedInMath
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