pub struct MathFunction { /* private fields */ }
Expand description
Mark a function with arguments.
Implementations§
Source§impl MathFunction
impl MathFunction
Sourcepub fn new<S, I>(name: S, body: I) -> Self
pub fn new<S, I>(name: S, body: I) -> Self
Create a simple math space without any attributes, the unit is rem
.
Sourcepub fn add_argument(&mut self, argument: MathML)
pub fn add_argument(&mut self, argument: MathML)
Create a simple math space without any attributes, the unit is rem
.
Sourcepub fn get_arguments(&self) -> &[MathML]
pub fn get_arguments(&self) -> &[MathML]
Create a simple math space without any attributes, the unit is rem
.
Sourcepub fn mut_arguments(&mut self) -> &mut Vec<MathML>
pub fn mut_arguments(&mut self) -> &mut Vec<MathML>
Create a simple math space without any attributes, the unit is rem
.
Trait Implementations§
Source§impl Clone for MathFunction
impl Clone for MathFunction
Source§fn clone(&self) -> MathFunction
fn clone(&self) -> MathFunction
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 MathFunction
impl Debug for MathFunction
Source§impl Display for MathFunction
impl Display for MathFunction
Source§impl From<MathFunction> for MathML
impl From<MathFunction> for MathML
Source§fn from(value: MathFunction) -> Self
fn from(value: MathFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MathFunction
impl PartialEq for MathFunction
impl StructuralPartialEq for MathFunction
Auto Trait Implementations§
impl Freeze for MathFunction
impl RefUnwindSafe for MathFunction
impl Send for MathFunction
impl Sync for MathFunction
impl Unpin for MathFunction
impl UnwindSafe for MathFunction
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