pub struct Fit<T> {
pub min: T,
pub natural: T,
}Expand description
smallest and natural content extents
Fields§
§min: Tsmallest extent before content overflows
natural: Textent the content wants
Implementations§
Trait Implementations§
Source§impl<T: Scalar> AddAssign for Fit<T>
impl<T: Scalar> AddAssign for Fit<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreimpl<T: Copy> Copy for Fit<T>
impl<T: Eq> Eq for Fit<T>
impl<T: PartialEq> StructuralPartialEq for Fit<T>
Auto Trait Implementations§
impl<T> Forget for Fit<T>
impl<T> Freeze for Fit<T>where
T: Freeze,
impl<T> Move for Fit<T>
impl<T> RefUnwindSafe for Fit<T>where
T: RefUnwindSafe,
impl<T> Send for Fit<T>where
T: Send,
impl<T> Sync for Fit<T>where
T: Sync,
impl<T> Unpin for Fit<T>where
T: Unpin,
impl<T> UnsafeUnpin for Fit<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Fit<T>where
T: 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