struct AbsoluteAxisSolver {
axis: Direction,
containing_size: Au,
padding_border_sum: Au,
computed_margin_start: AuOrAuto,
computed_margin_end: AuOrAuto,
computed_sizes: Sizes,
avoid_negative_margin_start: bool,
box_offsets: LogicalSides1D<AuOrAuto>,
static_position_rect_axis: RectAxis,
alignment: AlignFlags,
flip_anchor: bool,
is_table_or_replaced: bool,
}Fields§
§axis: Direction§containing_size: Au§padding_border_sum: Au§computed_margin_start: AuOrAuto§computed_margin_end: AuOrAuto§computed_sizes: Sizes§avoid_negative_margin_start: bool§box_offsets: LogicalSides1D<AuOrAuto>§static_position_rect_axis: RectAxis§alignment: AlignFlags§flip_anchor: bool§is_table_or_replaced: boolImplementations§
Source§impl AbsoluteAxisSolver
impl AbsoluteAxisSolver
Sourcefn inset_sum(&self) -> Au
fn inset_sum(&self) -> Au
Returns the amount that we need to subtract from the containing block size in order to obtain the inset-modified containing block that we will use for sizing purposes. (Note that for alignment purposes, we may re-resolve auto insets to a different value.) https://drafts.csswg.org/css-position/#resolving-insets
Sourcefn available_space(&self) -> Au
fn available_space(&self) -> Au
Returns the size of the inset-modified containing block. https://drafts.csswg.org/css-position-3/#inset-modified-containing-block
fn automatic_size(&self) -> Size<Au>
fn stretch_size(&self) -> Au
fn solve_margins(&self, size: Au) -> LogicalSides1D<Au>
fn origin_for_margin_box( &self, size: Au, self_writing_mode: WritingMode, original_parent_writing_mode: WritingMode, containing_block_writing_mode: WritingMode, ) -> Au
Auto Trait Implementations§
impl Freeze for AbsoluteAxisSolver
impl RefUnwindSafe for AbsoluteAxisSolver
impl Send for AbsoluteAxisSolver
impl Sync for AbsoluteAxisSolver
impl Unpin for AbsoluteAxisSolver
impl UnsafeUnpin for AbsoluteAxisSolver
impl UnwindSafe for AbsoluteAxisSolver
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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>
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert