pub struct Layout {
pub width: f64,
pub penalty: i32,
pub has_break: bool,
pub breaks: Vec<usize>,
pub indent: f64,
}Expand description
A single layout option for a MathML subtree.
Fields§
§width: f64Total width in “em-like” units.
penalty: i32Total penalty score.
has_break: boolWhether this layout contains line breaks.
breaks: Vec<usize>Break positions (indices into children).
indent: f64Indentation depth for continuation lines.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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