Struct layout_2020::flexbox::FlexContainerConfig
source · pub(crate) struct FlexContainerConfig {
container_is_single_line: bool,
writing_mode: WritingMode,
flex_axis: FlexAxis,
flex_direction: T,
flex_direction_is_reversed: bool,
flex_wrap: T,
flex_wrap_is_reversed: bool,
main_start_cross_start_sides_are: MainStartCrossStart,
align_content: AlignContent,
align_items: T,
justify_content: JustifyContent,
}
Expand description
A structure to hold the configuration of a flex container for use during layout and preferred width calculation.
Fields§
§container_is_single_line: bool
§writing_mode: WritingMode
§flex_axis: FlexAxis
§flex_direction: T
§flex_direction_is_reversed: bool
§flex_wrap: T
§flex_wrap_is_reversed: bool
§main_start_cross_start_sides_are: MainStartCrossStart
§align_content: AlignContent
§align_items: T
§justify_content: JustifyContent
Implementations§
source§impl FlexContainerConfig
impl FlexContainerConfig
sourcefn item_with_auto_cross_size_stretches_to_container_size(
&self,
item_style: &ComputedValues,
item_margin: &FlexRelativeSides<AuOrAuto>,
) -> bool
fn item_with_auto_cross_size_stretches_to_container_size( &self, item_style: &ComputedValues, item_margin: &FlexRelativeSides<AuOrAuto>, ) -> bool
Whether an item with an auto
preferred cross size needs to be stretched
to fill the flex container.
https://drafts.csswg.org/css-flexbox/#stretched
fn resolve_reversable_flex_alignment( &self, align_flags: AlignFlags, reversed: bool, ) -> AlignFlags
fn resolve_align_self_for_child( &self, child_style: &ComputedValues, ) -> AlignFlags
fn resolve_justify_content_for_child(&self) -> AlignFlags
source§impl FlexContainerConfig
impl FlexContainerConfig
fn new(container_style: &ComputedValues) -> FlexContainerConfig
Trait Implementations§
source§impl Clone for FlexContainerConfig
impl Clone for FlexContainerConfig
source§fn clone(&self) -> FlexContainerConfig
fn clone(&self) -> FlexContainerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FlexContainerConfig
impl Debug for FlexContainerConfig
Auto Trait Implementations§
impl Freeze for FlexContainerConfig
impl RefUnwindSafe for FlexContainerConfig
impl Send for FlexContainerConfig
impl Sync for FlexContainerConfig
impl Unpin for FlexContainerConfig
impl UnwindSafe for FlexContainerConfig
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> 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