pub enum Size {
Inner,
Percentage(Length),
Pixels(Length),
DynamicCalculations(Vec<DynamicCalculation>),
Fill,
RootPercentage(Length),
}
Variants§
Inner
Percentage(Length)
Pixels(Length)
DynamicCalculations(Vec<DynamicCalculation>)
Fill
RootPercentage(Length)
Implementations§
source§impl Size
impl Size
pub fn pretty(&self) -> String
pub fn eval( &self, parent_value: f32, available_parent_value: f32, parent_margin: f32, root_value: f32 ) -> 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 ) -> f32
Trait Implementations§
source§impl PartialEq for Size
impl PartialEq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
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