pub struct MathChar<ET: EngineTypes> {
pub char: ET::Char,
pub cls: MathClass,
pub style: UnresolvedMathFontStyle<ET>,
}Expand description
Convenience struct for characters in math mode
Fields§
§char: ET::CharThe character
cls: MathClassThe math class determined from its mathcode
style: UnresolvedMathFontStyle<ET>The font style
Implementations§
Source§impl<ET: EngineTypes> MathChar<ET>
impl<ET: EngineTypes> MathChar<ET>
Sourcepub fn to_atom(self) -> MathAtom<ET, UnresolvedMathFontStyle<ET>>
pub fn to_atom(self) -> MathAtom<ET, UnresolvedMathFontStyle<ET>>
Convert this into an unresolved MathAtom.
pub fn to_nucleus(self) -> MathNucleus<ET, UnresolvedMathFontStyle<ET>>
Trait Implementations§
Auto Trait Implementations§
impl<ET> Freeze for MathChar<ET>
impl<ET> RefUnwindSafe for MathChar<ET>
impl<ET> Send for MathChar<ET>
impl<ET> Sync for MathChar<ET>
impl<ET> Unpin for MathChar<ET>
impl<ET> UnsafeUnpin for MathChar<ET>
impl<ET> UnwindSafe for MathChar<ET>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more