Struct gpui2::PointRefinement
source · pub struct PointRefinement<T: Default + Clone + Debug> {
pub x: Option<T>,
pub y: Option<T>,
}
Fields§
§x: Option<T>
§y: Option<T>
Implementations§
Trait Implementations§
source§impl<T: Clone + Default + Clone + Debug> Clone for PointRefinement<T>
impl<T: Clone + Default + Clone + Debug> Clone for PointRefinement<T>
source§fn clone(&self) -> PointRefinement<T>
fn clone(&self) -> PointRefinement<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: Default + Clone + Debug> From<PointRefinement<T>> for Point<T>where
Option<T>: Clone,
impl<T: Default + Clone + Debug> From<PointRefinement<T>> for Point<T>where Option<T>: Clone,
source§fn from(value: PointRefinement<T>) -> Self
fn from(value: PointRefinement<T>) -> Self
Converts to this type from the input type.
source§impl<T: Default + Clone + Debug> Refineable for PointRefinement<T>where
Option<T>: Clone,
impl<T: Default + Clone + Debug> Refineable for PointRefinement<T>where Option<T>: Clone,
type Refinement = PointRefinement<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 PointRefinement<T>where T: RefUnwindSafe,
impl<T> Send for PointRefinement<T>where T: Send,
impl<T> Sync for PointRefinement<T>where T: Sync,
impl<T> Unpin for PointRefinement<T>where T: Unpin,
impl<T> UnwindSafe for PointRefinement<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