pub struct BoxFragment {
pub style: Arc<ComputedValues>,
pub children: Vec<Fragment>,
pub content_rect: Rect<Length>,
pub padding: Sides<Length>,
pub border: Sides<Length>,
pub margin: Sides<Length>,
pub block_margins_collapsed_with_children: CollapsedBlockMargins,
}Fields§
§style: Arc<ComputedValues>§children: Vec<Fragment>§content_rect: Rect<Length>From the containing block’s start corner…? This might be broken when the containing block is in a different writing mode: https://drafts.csswg.org/css-writing-modes/#orthogonal-flows
padding: Sides<Length>§border: Sides<Length>§margin: Sides<Length>§block_margins_collapsed_with_children: CollapsedBlockMarginsImplementations§
Source§impl BoxFragment
impl BoxFragment
pub fn border_rect(&self) -> Rect<Length>
Auto Trait Implementations§
impl Freeze for BoxFragment
impl RefUnwindSafe for BoxFragment
impl Send for BoxFragment
impl Sync for BoxFragment
impl Unpin for BoxFragment
impl UnwindSafe for BoxFragment
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> 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