pub enum Size {
Inner,
Percentage(Length<f32, Measure>),
Pixels(Length<f32, Measure>),
DynamicCalculations(Vec<DynamicCalculation, Global>),
Fill,
}
Variants§
Inner
Percentage(Length<f32, Measure>)
Pixels(Length<f32, Measure>)
DynamicCalculations(Vec<DynamicCalculation, Global>)
Fill
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 ) -> Option<f32>
pub fn min_max( &self, value: f32, parent_value: f32, available_parent_value: f32, single_margin: f32, margin: f32, minimum: &Size, maximum: &Size ) -> f32
Trait Implementations§
source§impl PartialEq<Size> for Size
impl PartialEq<Size> 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.