#[repr(C)]pub struct ContentInset {
pub left: f32,
pub top: f32,
}Expand description
The left/top inset from a node’s BORDER box to its CONTENT box:
padding-left + border-left-width and padding-top + border-top-width.
This is the E term in the module docs. It is the difference between the
box layout positions the node (border box, calculated_positions) and the
box inline text is laid out in (content box) — which is exactly the term
that used to be silently missing on one of the two hit-test hosts.
Fields§
§left: f32padding-left + border-left-width
top: f32padding-top + border-top-width
Implementations§
Trait Implementations§
Source§impl Clone for ContentInset
impl Clone for ContentInset
Source§fn clone(&self) -> ContentInset
fn clone(&self) -> ContentInset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentInset
Source§impl Debug for ContentInset
impl Debug for ContentInset
Source§impl Default for ContentInset
impl Default for ContentInset
Source§fn default() -> ContentInset
fn default() -> ContentInset
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContentInset
impl PartialEq for ContentInset
impl StructuralPartialEq for ContentInset
Auto Trait Implementations§
impl Freeze for ContentInset
impl RefUnwindSafe for ContentInset
impl Send for ContentInset
impl Sync for ContentInset
impl Unpin for ContentInset
impl UnsafeUnpin for ContentInset
impl UnwindSafe for ContentInset
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