pub struct MathFragment {
pub type_: MathFragment_,
pub text: String,
pub errors: Option<Vec<String>>,
pub id: Option<Box<String>>,
pub math_language: Option<Box<String>>,
}
Expand description
A fragment of math, e.g a variable name, to be treated as inline content.
Fields§
§type_: MathFragment_
The name of this type
text: String
The text of the equation in the language.
errors: Option<Vec<String>>
Errors that occurred when parsing the math equation.
id: Option<Box<String>>
The identifier for this item.
math_language: Option<Box<String>>
The language used for the equation e.g tex, mathml, asciimath.
Trait Implementations§
Source§impl Clone for MathFragment
impl Clone for MathFragment
Source§fn clone(&self) -> MathFragment
fn clone(&self) -> MathFragment
Returns a copy of the value. Read more
1.0.0 · 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 MathFragment
impl Debug for MathFragment
Source§impl Default for MathFragment
impl Default for MathFragment
Source§impl<'de> Deserialize<'de> for MathFragmentwhere
MathFragment: Default,
impl<'de> Deserialize<'de> for MathFragmentwhere
MathFragment: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MathFragment
impl RefUnwindSafe for MathFragment
impl Send for MathFragment
impl Sync for MathFragment
impl Unpin for MathFragment
impl UnwindSafe for MathFragment
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