pub struct BoxProps {
pub margin: EdgeSizes,
pub padding: EdgeSizes,
pub border: EdgeSizes,
}Expand description
A fully resolved representation of a a node’s box model properties.
Fields§
§margin: EdgeSizes§padding: EdgeSizes§border: EdgeSizesImplementations§
Source§impl BoxProps
impl BoxProps
Sourcepub fn inner_size(
&self,
outer_size: LogicalSize,
wm: LayoutWritingMode,
) -> LogicalSize
pub fn inner_size( &self, outer_size: LogicalSize, wm: LayoutWritingMode, ) -> LogicalSize
Calculates the inner content-box size from an outer border-box size, correctly accounting for the specified writing mode.
Trait Implementations§
impl Copy for BoxProps
Auto Trait Implementations§
impl Freeze for BoxProps
impl RefUnwindSafe for BoxProps
impl Send for BoxProps
impl Sync for BoxProps
impl Unpin for BoxProps
impl UnwindSafe for BoxProps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more