pub struct MathZone {
pub elements: Vec<MathElement>,
}Expand description
A math zone (<m:oMath>).
Contains a sequence of math elements that form a mathematical expression.
Fields§
§elements: Vec<MathElement>Math elements in this zone.
Implementations§
Trait Implementations§
Source§impl MathZoneExt for MathZone
impl MathZoneExt for MathZone
Source§fn element_count(&self) -> usize
fn element_count(&self) -> usize
Get the number of top-level elements in this math zone.
Source§fn has_fractions(&self) -> bool
fn has_fractions(&self) -> bool
Check if any top-level element is a fraction.
Source§fn has_radicals(&self) -> bool
fn has_radicals(&self) -> bool
Check if any top-level element is a radical (square root or nth root).
Source§fn has_matrices(&self) -> bool
fn has_matrices(&self) -> bool
Check if any top-level element is a matrix.
Source§fn has_scripts(&self) -> bool
fn has_scripts(&self) -> bool
Check if any top-level element is a script (subscript or superscript).
Auto Trait Implementations§
impl Freeze for MathZone
impl RefUnwindSafe for MathZone
impl Send for MathZone
impl Sync for MathZone
impl Unpin for MathZone
impl UnsafeUnpin for MathZone
impl UnwindSafe for MathZone
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