pub struct DollarMathDisabled {
pub suggestion: String,
}Expand description
The error that is reported when a $ appears in the source while $ is not
a math delimiter (id flm.lang.dollar-math-disabled).
$ is a math delimiter only when the parsing setting
FlmParsing::dollar_math is on.
When this setting is off, which is the default, inline math is written
\(…\), as in \(x^2\), and display math is written \[…\]. \$ writes a
dollar sign in either setting.
Reported by the parser when it reads the $. The $ is kept in the text as
an ordinary character, and the parse continues.
Fields§
§suggestion: StringThe text that the message gives after “use”: the math delimiters to
write instead of $. The driver always sets this field to
DollarMathDisabled::SUGGESTION.
Implementations§
Source§impl DollarMathDisabled
impl DollarMathDisabled
Sourcepub fn new(suggestion: impl Into<String>) -> Self
pub fn new(suggestion: impl Into<String>) -> Self
Creates a DollarMathDisabled condition.
Source§impl DollarMathDisabled
impl DollarMathDisabled
Sourcepub const SUGGESTION: &'static str = "\\(…\\) for inline mathematics or \\[…\\] for display mathematics"
pub const SUGGESTION: &'static str = "\\(…\\) for inline mathematics or \\[…\\] for display mathematics"
The value of the suggestion field in every condition that the driver
reports. It gives the delimiters \(…\) for inline math and \[…\] for
display math.
Trait Implementations§
Source§impl Clone for DollarMathDisabled
impl Clone for DollarMathDisabled
Source§impl Debug for DollarMathDisabled
impl Debug for DollarMathDisabled
Source§impl DiagnosticInfo for DollarMathDisabled
impl DiagnosticInfo for DollarMathDisabled
Source§const IDENTIFIER: &'static str = "flm.lang.dollar-math-disabled"
const IDENTIFIER: &'static str = "flm.lang.dollar-math-disabled"
<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 DollarMathDisabled
impl Display for DollarMathDisabled
impl Eq for DollarMathDisabled
Source§impl PartialEq for DollarMathDisabled
impl PartialEq for DollarMathDisabled
impl StructuralPartialEq for DollarMathDisabled
Auto Trait Implementations§
impl Forget for DollarMathDisabled
impl Freeze for DollarMathDisabled
impl Move for DollarMathDisabled
impl RefUnwindSafe for DollarMathDisabled
impl Send for DollarMathDisabledwhere
RawVecInner: Send,
impl Sync for DollarMathDisabledwhere
RawVecInner: Sync,
impl Unpin for DollarMathDisabled
impl UnsafeUnpin for DollarMathDisabled
impl UnwindSafe for DollarMathDisabledwhere
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