pub struct MathElemCst {
pub base: MathBot,
pub scripts: Vec<MathScript>,
}Expand description
mathtop-analogue: one math element — identical shape to
crate::cst::ast::MathElemCst (no 0.1 delta; see its doc comment
for why this needs no direct self-loop of its own).
Fields§
§base: MathBot§scripts: Vec<MathScript>Trait Implementations§
Source§impl Clone for MathElemCst
impl Clone for MathElemCst
Source§fn clone(&self) -> MathElemCst
fn clone(&self) -> MathElemCst
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 MathElemCst
impl Debug for MathElemCst
Source§impl<__SyanMacro_Atom> Parse<__SyanMacro_Atom> for MathElemCst
impl<__SyanMacro_Atom> Parse<__SyanMacro_Atom> for MathElemCst
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 MathElemCst
impl PartialEq for MathElemCst
impl StructuralPartialEq for MathElemCst
Source§impl<__SyanMacro_Atom> Unparse<__SyanMacro_Atom> for MathElemCst
impl<__SyanMacro_Atom> Unparse<__SyanMacro_Atom> for MathElemCst
Auto Trait Implementations§
impl Freeze for MathElemCst
impl RefUnwindSafe for MathElemCst
impl Send for MathElemCst
impl Sync for MathElemCst
impl Unpin for MathElemCst
impl UnsafeUnpin for MathElemCst
impl UnwindSafe for MathElemCst
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