Struct NodeMath
pub struct NodeMath { pub dollar_math: bool, pub display_math: bool, pub literal: String }
An inline math span
Fields
dollar_math: boolWhether this is dollar math (
$or$$).falseindicates it is code mathdisplay_math: boolWhether this is display math (using
$$)literal: StringThe literal contents of the math span. As the contents are not interpreted as Markdown at all, they are contained within this structure, rather than inserted into a child inline of any kind.
Trait Implementations
impl Clone for NodeMath
fn clone(&self) -> NodeMath
impl Debug for NodeMath
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for NodeMath
fn default() -> NodeMath
impl Eq for NodeMath
impl PartialEq for NodeMath
fn eq(&self, other: &NodeMath) -> bool
impl StructuralPartialEq for NodeMath
Auto Trait Implementations
impl Freeze for NodeMath
impl RefUnwindSafe for NodeMath
impl Send for NodeMath
impl Sync for NodeMath
impl Unpin for NodeMath
impl UnsafeUnpin for NodeMath
impl UnwindSafe for NodeMath
Blanket Implementations
impl<T> Any for NodeMath
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NodeMath
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NodeMath
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for NodeMath
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for NodeMath
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for NodeMath
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for NodeMath
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for NodeMath
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NodeMath
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>