Struct layout_2013::block::BSizeConstraintSolution
source · struct BSizeConstraintSolution {
block_start: Au,
block_size: Au,
margin_block_start: Au,
margin_block_end: Au,
}
Expand description
The solutions for the block-size-and-margins constraint equation.
Fields§
§block_start: Au
§block_size: Au
§margin_block_start: Au
§margin_block_end: Au
Implementations§
source§impl BSizeConstraintSolution
impl BSizeConstraintSolution
fn new( block_start: Au, block_size: Au, margin_block_start: Au, margin_block_end: Au, ) -> BSizeConstraintSolution
sourcefn solve_vertical_constraints_abs_nonreplaced(
block_size: MaybeAuto,
block_start_margin: MaybeAuto,
block_end_margin: MaybeAuto,
block_start: MaybeAuto,
block_end: MaybeAuto,
content_block_size: Au,
available_block_size: Au,
) -> BSizeConstraintSolution
fn solve_vertical_constraints_abs_nonreplaced( block_size: MaybeAuto, block_start_margin: MaybeAuto, block_end_margin: MaybeAuto, block_start: MaybeAuto, block_end: MaybeAuto, content_block_size: Au, available_block_size: Au, ) -> BSizeConstraintSolution
Solve the vertical constraint equation for absolute non-replaced elements.
CSS Section 10.6.4 Constraint equation: block-start + block-end + block-size + margin-block-start + margin-block-end = absolute containing block block-size - (vertical padding and border) [aka available_block-size]
Return the solution for the equation.
sourcefn solve_vertical_constraints_abs_replaced(
block_size: Au,
block_start_margin: MaybeAuto,
block_end_margin: MaybeAuto,
block_start: MaybeAuto,
block_end: MaybeAuto,
_: Au,
available_block_size: Au,
) -> BSizeConstraintSolution
fn solve_vertical_constraints_abs_replaced( block_size: Au, block_start_margin: MaybeAuto, block_end_margin: MaybeAuto, block_start: MaybeAuto, block_end: MaybeAuto, _: Au, available_block_size: Au, ) -> BSizeConstraintSolution
Solve the vertical constraint equation for absolute replaced elements.
Assumption: The used value for block-size has already been calculated.
CSS Section 10.6.5 Constraint equation: block-start + block-end + block-size + margin-block-start + margin-block-end = absolute containing block block-size - (vertical padding and border) [aka available block-size]
Return the solution for the equation.
Trait Implementations§
source§impl Clone for BSizeConstraintSolution
impl Clone for BSizeConstraintSolution
source§fn clone(&self) -> BSizeConstraintSolution
fn clone(&self) -> BSizeConstraintSolution
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl Copy for BSizeConstraintSolution
Auto Trait Implementations§
impl Freeze for BSizeConstraintSolution
impl RefUnwindSafe for BSizeConstraintSolution
impl Send for BSizeConstraintSolution
impl Sync for BSizeConstraintSolution
impl Unpin for BSizeConstraintSolution
impl UnwindSafe for BSizeConstraintSolution
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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