pub struct Surface {
pub width: Length,
pub height: Length,
pub baseline: Length,
}Expand description
Extent of a fragment, the root box’s width, total height and height above the baseline.
Fields§
§width: LengthRoot width.
height: LengthRoot height plus depth.
baseline: LengthDistance from the top edge down to the baseline, the root height.
Implementations§
Trait Implementations§
impl Copy for Surface
impl Eq for Surface
impl StructuralPartialEq for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
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