pub struct Baselines {
pub first: Option<f32>,
pub last: Option<f32>,
}Expand description
The first and last baselines of a node in the horizontal axis (i.e. baselines for horizontal text, measured as an offset from the top edge of the node’s border box).
A baseline is the line on which text sits. See https://www.w3.org/TR/css-writing-modes-3/#intro-baselines for details.
Fields§
§first: Option<f32>The first baseline of the node, if any
last: Option<f32>The last baseline of the node, if any
Implementations§
Trait Implementations§
impl Copy for Baselines
impl StructuralPartialEq for Baselines
Auto Trait Implementations§
impl Freeze for Baselines
impl RefUnwindSafe for Baselines
impl Send for Baselines
impl Sync for Baselines
impl Unpin for Baselines
impl UnsafeUnpin for Baselines
impl UnwindSafe for Baselines
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