Struct gpui2::SizeRefinement
source · pub struct SizeRefinement<T: Clone + Default + Debug> {
pub width: Option<T>,
pub height: Option<T>,
}
Fields§
§width: Option<T>
§height: Option<T>
Implementations§
Trait Implementations§
source§impl<T: Clone + Clone + Default + Debug> Clone for SizeRefinement<T>
impl<T: Clone + Clone + Default + Debug> Clone for SizeRefinement<T>
source§fn clone(&self) -> SizeRefinement<T>
fn clone(&self) -> SizeRefinement<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Clone + Default + Debug> From<SizeRefinement<T>> for Size<T>where
Option<T>: Clone,
impl<T: Clone + Default + Debug> From<SizeRefinement<T>> for Size<T>where Option<T>: Clone,
source§fn from(value: SizeRefinement<T>) -> Self
fn from(value: SizeRefinement<T>) -> Self
Converts to this type from the input type.
source§impl<T: Clone + Default + Debug> Refineable for SizeRefinement<T>where
Option<T>: Clone,
impl<T: Clone + Default + Debug> Refineable for SizeRefinement<T>where Option<T>: Clone,
type Refinement = SizeRefinement<T>
fn refine(&mut self, refinement: &Self::Refinement)
fn refined(self, refinement: Self::Refinement) -> Self
fn from_cascade(cascade: &Cascade<Self>) -> Selfwhere Self: Default + Sized,
Auto Trait Implementations§
impl<T> RefUnwindSafe for SizeRefinement<T>where T: RefUnwindSafe,
impl<T> Send for SizeRefinement<T>where T: Send,
impl<T> Sync for SizeRefinement<T>where T: Sync,
impl<T> Unpin for SizeRefinement<T>where T: Unpin,
impl<T> UnwindSafe for SizeRefinement<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