pub struct MinMax<Min, Max> {
pub min: Min,
pub max: Max,
}
Expand description
Generic struct which holds a “min” value and a “max” value
Fields§
§min: Min
The value representing the minimum
max: Max
The value representing the maximum
Implementations§
source§impl MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>
impl MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>
sourcepub fn min_sizing_function(&self) -> MinTrackSizingFunction
pub fn min_sizing_function(&self) -> MinTrackSizingFunction
Extract the min track sizing function
sourcepub fn max_sizing_function(&self) -> MaxTrackSizingFunction
pub fn max_sizing_function(&self) -> MaxTrackSizingFunction
Extract the max track sizing function
sourcepub fn has_fixed_component(&self) -> bool
pub fn has_fixed_component(&self) -> bool
Determine whether at least one of the components (“min” and “max”) are fixed sizing function
Trait Implementations§
source§impl From<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>> for TrackSizingFunction
impl From<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>> for TrackSizingFunction
source§fn from(input: MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>) -> Self
fn from(input: MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>) -> Self
Converts to this type from the input type.
impl<Min: Copy, Max: Copy> Copy for MinMax<Min, Max>
impl<Min: Eq, Max: Eq> Eq for MinMax<Min, Max>
impl<Min, Max> StructuralPartialEq for MinMax<Min, Max>
Auto Trait Implementations§
impl<Min, Max> Freeze for MinMax<Min, Max>
impl<Min, Max> RefUnwindSafe for MinMax<Min, Max>where
Min: RefUnwindSafe,
Max: RefUnwindSafe,
impl<Min, Max> Send for MinMax<Min, Max>
impl<Min, Max> Sync for MinMax<Min, Max>
impl<Min, Max> Unpin for MinMax<Min, Max>
impl<Min, Max> UnwindSafe for MinMax<Min, Max>where
Min: UnwindSafe,
Max: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)