pub struct SpaceNode {
pub width: f64,
pub character: Option<String>,
}
Expand description
Space node for MathML, may render as <mspace>
or as text
Fields§
§width: f64
The width of the space in em units
character: Option<String>
Optional character to represent the space, defaults to a regular space
Implementations§
Trait Implementations§
Source§impl From<SpaceNode> for MathDomNode
impl From<SpaceNode> for MathDomNode
Source§impl VirtualNode for SpaceNode
impl VirtualNode for SpaceNode
Source§fn write_markup(&self, fmt: &mut Formatter<'_>) -> Result<(), ParseError>
fn write_markup(&self, fmt: &mut Formatter<'_>) -> Result<(), ParseError>
Convert into HTML markup by writing into the provided formatter.
Auto Trait Implementations§
impl Freeze for SpaceNode
impl RefUnwindSafe for SpaceNode
impl Send for SpaceNode
impl Sync for SpaceNode
impl Unpin for SpaceNode
impl UnwindSafe for SpaceNode
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