pub struct CellStylesParser { /* private fields */ }Expand description
The parser of the styles argument of \cell and \celldata: an optional
<…> group of document content, built on techy’s optional group parser
with the delimiters < and >. See the module documentation.
What it states through FlmArgumentParser: its identity is
IDENTITY; it has no shape in a recomposed user definition, since no
user definition declares such an argument; its description is “an
optional <…> group of style tokens”. An argument that is not written is
absent.
Implementations§
Source§impl CellStylesParser
impl CellStylesParser
Sourcepub fn new() -> CellStylesParser
pub fn new() -> CellStylesParser
Creates the parser.
Trait Implementations§
Source§impl ArgumentParser<Flm> for CellStylesParser
impl ArgumentParser<Flm> for CellStylesParser
Source§fn parse_argument(
&self,
cx: &mut ParseContext<'_, '_, Flm>,
spec: &ArgumentSpec<Flm>,
) -> ConstructParserResult<Flm, Option<ParsedArgumentNodes<Flm>>>
fn parse_argument( &self, cx: &mut ParseContext<'_, '_, Flm>, spec: &ArgumentSpec<Flm>, ) -> ConstructParserResult<Flm, Option<ParsedArgumentNodes<Flm>>>
Parse one argument at the context’s current position. Read more
Source§fn can_match_empty(&self) -> bool
fn can_match_empty(&self) -> bool
Whether this argument can be satisfied by consuming nothing — whether reporting
it absent is a valid outcome rather than a diagnosed recovery. Read more
Source§impl Debug for CellStylesParser
impl Debug for CellStylesParser
Source§impl Default for CellStylesParser
impl Default for CellStylesParser
Source§fn default() -> CellStylesParser
fn default() -> CellStylesParser
Returns the “default value” for a type. Read more
Source§impl FlmArgumentParser for CellStylesParser
impl FlmArgumentParser for CellStylesParser
Source§fn identity(&self) -> Vec<u8> ⓘ
fn identity(&self) -> Vec<u8> ⓘ
Returns the bytes that identify this parser in the registry
digest (the hash of everything about a registry
that can change what processing produces) and in the digest that the
userdefs feature computes over its configuration
(UserdefsConfig::digest_bytes). Read moreSource§fn definition_shape(&self) -> DefinitionShape
fn definition_shape(&self) -> DefinitionShape
Returns how a user definition that declares this argument is written
back as a LaTeX definition, when the recomposed LaTeX
backend keeps the
definition rather than expanding it. See
DefinitionShape.Source§fn description(&self) -> String
fn description(&self) -> String
Returns a description of the argument’s syntax in a short phrase, such
as “an optional
[…] group”. Read moreSource§fn tack_on_fields(&self) -> Option<&[TackOnField]>
fn tack_on_fields(&self) -> Option<&[TackOnField]>
Returns the tack-on fields the argument declares, when
it is a tack-on argument: the argument that absorbs the field macros
written at its position in a call, after the arguments declared before
it, such as the
\label{…} after a heading. The default returns None,
for every other argument. Read moreSource§fn std_kind(&self) -> Option<&ArgStdKind>
fn std_kind(&self) -> Option<&ArgStdKind>
Returns the standard kind this parser reads, for a
program that describes the registry’s declarations, such as a
generator of documentation pages;
None, the default, for a parser of
a feature’s own.Auto Trait Implementations§
impl Forget for CellStylesParser
impl Freeze for CellStylesParser
impl Move for CellStylesParser
impl RefUnwindSafe for CellStylesParser
impl Send for CellStylesParser
impl Sync for CellStylesParser
impl Unpin for CellStylesParser
impl UnsafeUnpin for CellStylesParser
impl UnwindSafe for CellStylesParser
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
Mutably borrows from an owned value. Read more
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>,
Casts the value.
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>
Casts the value.
Source§impl<L, P> IntoArgumentParser<L, ByValue> for Pwhere
L: Lang,
P: ArgumentParser<L> + 'static,
impl<L, P> IntoArgumentParser<L, ByValue> for Pwhere
L: Lang,
P: ArgumentParser<L> + 'static,
Source§fn into_argument_parser(self) -> Arc<dyn ArgumentParser<L>> ⓘ
fn into_argument_parser(self) -> Arc<dyn ArgumentParser<L>> ⓘ
Convert into the shared parser handle
ArgumentSpecs store.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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<P> IntoFlmArgumentParser for Pwhere
P: FlmArgumentParser + 'static,
impl<P> IntoFlmArgumentParser for Pwhere
P: FlmArgumentParser + 'static,
Source§fn into_flm_argument_parser(self) -> Arc<dyn FlmArgumentParser> ⓘ
fn into_flm_argument_parser(self) -> Arc<dyn FlmArgumentParser> ⓘ
Returns the shared parser object an
ArgDef holds.Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.