pub struct BareContent {
pub environment: String,
pub sections: String,
}Expand description
The error that is reported when a quote environment such as quote
contains content outside its quotation-section commands (id
flm.quote.bare-content).
The configuration of a quote environment
(QuoteEnvironment) declares the
quotation-section commands (\text, \lines, \attributed and \block)
that its body accepts. It can also declare a kind of quotation section for
the content written outside these commands
(bare). If it declares none, as for the
default environment quote, all content must be written inside the
accepted commands, as in
\begin{quote}\text{Veni, vidi, vici.}\attributed{Caesar}\end{quote}.
Whitespace and comments outside the commands are allowed.
Reported by the lowering rule of the quote environment
(QuoteRule, or
QuoteLatexRule on the latex-recomposed
backend) when it is invoked. The error is reported once for each run of
content outside the commands: all the content between two
quotation-section commands, or before the first, or after the last. This
content is otherwise written as usual, at its place in the quotation and
outside any quotation section.
Fields§
§environment: StringThe environment’s name.
sections: StringThe quotation-section commands that the environment accepts, quoted
and listed as in an English sentence, e.g.
‘\text’, ‘\lines’ or ‘\block’.
Implementations§
Source§impl BareContent
impl BareContent
Trait Implementations§
Source§impl Clone for BareContent
impl Clone for BareContent
Source§impl Debug for BareContent
impl Debug for BareContent
Source§impl DiagnosticInfo for BareContent
impl DiagnosticInfo for BareContent
Source§const IDENTIFIER: &'static str = "flm.quote.bare-content"
const IDENTIFIER: &'static str = "flm.quote.bare-content"
<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 BareContent
impl Display for BareContent
impl Eq for BareContent
Source§impl PartialEq for BareContent
impl PartialEq for BareContent
impl StructuralPartialEq for BareContent
Auto Trait Implementations§
impl Forget for BareContent
impl Freeze for BareContent
impl Move for BareContent
impl RefUnwindSafe for BareContent
impl Send for BareContent
impl Sync for BareContent
impl Unpin for BareContent
impl UnsafeUnpin for BareContent
impl UnwindSafe for BareContent
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