pub enum Size {
Inner,
Fill,
FillMinimum,
Percentage(Length),
Pixels(Length),
RootPercentage(Length),
DynamicCalculations(f32, Box<Vec<DynamicCalculation>>),
Flex(Length),
}
Variants§
Inner
Fill
FillMinimum
Percentage(Length)
Pixels(Length)
RootPercentage(Length)
DynamicCalculations(f32, Box<Vec<DynamicCalculation>>)
Flex(Length)
Implementations§
Source§impl Size
impl Size
pub fn flex_grow(&self) -> Option<Length>
pub fn is_flex(&self) -> bool
pub fn inner_sized(&self) -> bool
pub fn pretty(&self) -> String
pub fn eval( &self, parent_value: f32, available_parent_value: f32, parent_margin: f32, root_value: f32, phase: Phase, ) -> Option<f32>
pub fn min_max( &self, value: f32, parent_value: f32, available_parent_value: f32, single_margin: f32, margin: f32, minimum: &Self, maximum: &Self, root_value: f32, phase: Phase, ) -> f32
pub fn most_fitting_size<'a>( &self, size: &'a f32, available_size: &'a f32, ) -> &'a f32
Trait Implementations§
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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