pub enum InlineElem {
Char(CharTok),
CodeText(CodeTextTok),
Space(SpaceTok),
Break(BreakTok),
Embed {
var: VarInHorzTok,
semi: EndActiveTok,
},
EmbedMath {
mgrp: MathGroup<()>,
elems: Vec<MathErasedV1>,
},
Cmd {
name: AnyHorzCmdTok,
tail: CmdTail,
},
ItemBullet(ItemTok),
Sep(SepTok),
}Expand description
One inline-text element — identical shape to
crate::cst::ast::InlineElem (no 0.1 delta; text-mode content is
untouched by the comma/end deltas).
Variants§
Char(CharTok)
CodeText(CodeTextTok)
A backtick literal written inside inline text (`…`). Its own
arm, not a Char run, so the elaborator can dispatch it through the
context’s code-text command — see Token::CodeText.
Space(SpaceTok)
Break(BreakTok)
Embed
#var; — embeds a program variable’s value as inline content.
EmbedMath
${ math } — embeds math content as inline text.
Cmd
\cmd … (name also accepts the module-qualified \Mod.cmd
form).
ItemBullet(ItemTok)
An itemize bullet (*+) marker.
Sep(SepTok)
A | separator marker.
Trait Implementations§
Source§impl Clone for InlineElem
impl Clone for InlineElem
Source§fn clone(&self) -> InlineElem
fn clone(&self) -> InlineElem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineElem
impl Debug for InlineElem
Source§impl<__SyanMacro_Atom> Parse<__SyanMacro_Atom> for InlineElemwhere
__SyanMacro_Atom: Spanned + Clone,
CharTok: Parse<__SyanMacro_Atom>,
CodeTextTok: Parse<__SyanMacro_Atom>,
SpaceTok: Parse<__SyanMacro_Atom>,
BreakTok: Parse<__SyanMacro_Atom>,
VarInHorzTok: Parse<__SyanMacro_Atom>,
EndActiveTok: Parse<__SyanMacro_Atom>,
MathGroup<()>: GroupShape<__SyanMacro_Atom>,
__SyanSubstructOfOwn_mgrp_InlineElem_EmbedMath_17677086792962917609: Parse<__SyanMacro_Atom>,
AnyHorzCmdTok: Parse<__SyanMacro_Atom>,
CmdTail: Parse<__SyanMacro_Atom>,
ItemTok: Parse<__SyanMacro_Atom>,
SepTok: Parse<__SyanMacro_Atom>,
impl<__SyanMacro_Atom> Parse<__SyanMacro_Atom> for InlineElemwhere
__SyanMacro_Atom: Spanned + Clone,
CharTok: Parse<__SyanMacro_Atom>,
CodeTextTok: Parse<__SyanMacro_Atom>,
SpaceTok: Parse<__SyanMacro_Atom>,
BreakTok: Parse<__SyanMacro_Atom>,
VarInHorzTok: Parse<__SyanMacro_Atom>,
EndActiveTok: Parse<__SyanMacro_Atom>,
MathGroup<()>: GroupShape<__SyanMacro_Atom>,
__SyanSubstructOfOwn_mgrp_InlineElem_EmbedMath_17677086792962917609: Parse<__SyanMacro_Atom>,
AnyHorzCmdTok: Parse<__SyanMacro_Atom>,
CmdTail: Parse<__SyanMacro_Atom>,
ItemTok: Parse<__SyanMacro_Atom>,
SepTok: Parse<__SyanMacro_Atom>,
Source§type Error = ParseError<<__SyanMacro_Atom as Spanned>::Span>
type Error = ParseError<<__SyanMacro_Atom as Spanned>::Span>
Every error must be convertible to the universal one, so a field’s failure can become the
enclosing type’s failure with no per-field where-predicate. Stating it HERE rather than at
each derived impl is what keeps it out of the obligation graph: a per-field
<FieldTy as Parse<Atom>>::Error: Into<…> predicate re-creates a projection cycle on a
recursive field (E0275), which decycle’s bound-peeling does not break.Source§fn parse_stream<__SyanMacro_S: ParseStream<Atom = __SyanMacro_Atom>>(
__syan_stream: &mut __SyanMacro_S,
) -> Result<Self, Self::Error>
fn parse_stream<__SyanMacro_S: ParseStream<Atom = __SyanMacro_Atom>>( __syan_stream: &mut __SyanMacro_S, ) -> Result<Self, Self::Error>
Parse from a reborrowable stream. Read more
Source§impl PartialEq for InlineElem
impl PartialEq for InlineElem
impl StructuralPartialEq for InlineElem
Source§impl<__SyanMacro_Atom> Unparse<__SyanMacro_Atom> for InlineElemwhere
CharTok: Unparse<__SyanMacro_Atom>,
CodeTextTok: Unparse<__SyanMacro_Atom>,
SpaceTok: Unparse<__SyanMacro_Atom>,
BreakTok: Unparse<__SyanMacro_Atom>,
VarInHorzTok: Unparse<__SyanMacro_Atom>,
EndActiveTok: Unparse<__SyanMacro_Atom>,
MathGroup<()>: GroupUnparse<__SyanMacro_Atom>,
for<'syan_substruct_ref> __SyanSubstructOfRef_mgrp_InlineElem_EmbedMath_17677086792962917609<'syan_substruct_ref>: Unparse<__SyanMacro_Atom>,
AnyHorzCmdTok: Unparse<__SyanMacro_Atom>,
CmdTail: Unparse<__SyanMacro_Atom>,
ItemTok: Unparse<__SyanMacro_Atom>,
SepTok: Unparse<__SyanMacro_Atom>,
impl<__SyanMacro_Atom> Unparse<__SyanMacro_Atom> for InlineElemwhere
CharTok: Unparse<__SyanMacro_Atom>,
CodeTextTok: Unparse<__SyanMacro_Atom>,
SpaceTok: Unparse<__SyanMacro_Atom>,
BreakTok: Unparse<__SyanMacro_Atom>,
VarInHorzTok: Unparse<__SyanMacro_Atom>,
EndActiveTok: Unparse<__SyanMacro_Atom>,
MathGroup<()>: GroupUnparse<__SyanMacro_Atom>,
for<'syan_substruct_ref> __SyanSubstructOfRef_mgrp_InlineElem_EmbedMath_17677086792962917609<'syan_substruct_ref>: Unparse<__SyanMacro_Atom>,
AnyHorzCmdTok: Unparse<__SyanMacro_Atom>,
CmdTail: Unparse<__SyanMacro_Atom>,
ItemTok: Unparse<__SyanMacro_Atom>,
SepTok: Unparse<__SyanMacro_Atom>,
Auto Trait Implementations§
impl Freeze for InlineElem
impl RefUnwindSafe for InlineElem
impl Send for InlineElem
impl Sync for InlineElem
impl Unpin for InlineElem
impl UnsafeUnpin for InlineElem
impl UnwindSafe for InlineElem
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