pub struct ContentNotCharacters {
pub name: String,
}Expand description
The error that is reported when the content of a verbatim region is not
plain characters (flm.verbatim.content-not-characters).
A verbatim region is text in which no character has a markup meaning, such
as the argument of \verbcode (see verbatim
regions). Its content
is plain characters when it consists only of text, comments and brace
groups whose content is plain characters in turn. A brace group
contributes its content without the braces.
The text that an author writes in a verbatim region is always plain
characters. Other content gets there through a user definition whose
template places one of its arguments in a verbatim region. A call of
such a definition must pass plain characters in this argument. For
instance, if the template of \code is \verbcode{#1}, the call can be
\code{x = y + 1}.
Reported by read_verbatim_content, which
every lowering rule that stages verbatim content calls, at the command or
environment that contains the verbatim region. The verbatim region then
contains the source text of its whole content, markup included, as
characters. The same happens on every backend.
Fields§
§name: StringThe name of the command or environment that contains the verbatim
region, as written in the document: \verbcode for a command,
{verbatimcode} for an environment. When no command or environment
contains the region, this field contains the text a verbatim group.
Implementations§
Source§impl ContentNotCharacters
impl ContentNotCharacters
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Creates a ContentNotCharacters condition.
Trait Implementations§
Source§impl Clone for ContentNotCharacters
impl Clone for ContentNotCharacters
Source§impl Debug for ContentNotCharacters
impl Debug for ContentNotCharacters
Source§impl DiagnosticInfo for ContentNotCharacters
impl DiagnosticInfo for ContentNotCharacters
Source§const IDENTIFIER: &'static str = "flm.verbatim.content-not-characters"
const IDENTIFIER: &'static str = "flm.verbatim.content-not-characters"
<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 ContentNotCharacters
impl Display for ContentNotCharacters
impl Eq for ContentNotCharacters
Source§impl PartialEq for ContentNotCharacters
impl PartialEq for ContentNotCharacters
impl StructuralPartialEq for ContentNotCharacters
Auto Trait Implementations§
impl Forget for ContentNotCharacters
impl Freeze for ContentNotCharacters
impl Move for ContentNotCharacters
impl RefUnwindSafe for ContentNotCharacters
impl Send for ContentNotCharacterswhere
RawVecInner: Send,
impl Sync for ContentNotCharacterswhere
RawVecInner: Sync,
impl Unpin for ContentNotCharacters
impl UnsafeUnpin for ContentNotCharacters
impl UnwindSafe for ContentNotCharacterswhere
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