#[repr(C)]pub struct Bounds<T: Clone + Default + Debug> {
pub origin: Point<T>,
pub size: Size<T>,
}
Fields§
§origin: Point<T>
§size: Size<T>
Implementations§
source§impl<T> Bounds<T>where
T: Clone + Debug + PartialOrd + Add<T, Output = T> + Sub<Output = T> + Default + Half,
impl<T> Bounds<T>where T: Clone + Debug + PartialOrd + Add<T, Output = T> + Sub<Output = T> + Default + Half,
source§impl<T: Clone + Default + Debug + PartialOrd + Add<T, Output = T> + Sub<Output = T>> Bounds<T>
impl<T: Clone + Default + Debug + PartialOrd + Add<T, Output = T> + Sub<Output = T>> Bounds<T>
Trait Implementations§
source§impl<T, S> Div<S> for Bounds<T>where
Size<T>: Div<S, Output = Size<T>>,
T: Div<S, Output = T> + Default + Clone + Debug,
S: Clone,
impl<T, S> Div<S> for Bounds<T>where Size<T>: Div<S, Output = Size<T>>, T: Div<S, Output = T> + Default + Clone + Debug, S: Clone,
source§impl<T: Clone + Default + Debug> From<BoundsRefinement<T>> for Bounds<T>where
Option<Point<T>>: Clone,
Option<Size<T>>: Clone,
impl<T: Clone + Default + Debug> From<BoundsRefinement<T>> for Bounds<T>where Option<Point<T>>: Clone, Option<Size<T>>: Clone,
source§fn from(value: BoundsRefinement<T>) -> Self
fn from(value: BoundsRefinement<T>) -> Self
Converts to this type from the input type.
source§impl From<RectI> for Bounds<DevicePixels>
impl From<RectI> for Bounds<DevicePixels>
source§impl<T, Rhs> Mul<Rhs> for Bounds<T>where
T: Mul<Rhs, Output = Rhs> + Clone + Default + Debug,
Point<T>: Mul<Rhs, Output = Point<Rhs>>,
Rhs: Clone + Default + Debug,
impl<T, Rhs> Mul<Rhs> for Bounds<T>where T: Mul<Rhs, Output = Rhs> + Clone + Default + Debug, Point<T>: Mul<Rhs, Output = Point<Rhs>>, Rhs: Clone + Default + Debug,
source§impl<T, S> MulAssign<S> for Bounds<T>where
T: Mul<S, Output = T> + Clone + Default + Debug,
S: Clone,
impl<T, S> MulAssign<S> for Bounds<T>where T: Mul<S, Output = T> + Clone + Default + Debug, S: Clone,
source§fn mul_assign(&mut self, rhs: S)
fn mul_assign(&mut self, rhs: S)
Performs the
*=
operation. Read moresource§impl<T: PartialEq + Clone + Default + Debug> PartialEq<Bounds<T>> for Bounds<T>
impl<T: PartialEq + Clone + Default + Debug> PartialEq<Bounds<T>> for Bounds<T>
source§impl<T: Clone + Default + Debug> Refineable for Bounds<T>where
Option<Point<T>>: Clone,
Option<Size<T>>: Clone,
impl<T: Clone + Default + Debug> Refineable for Bounds<T>where Option<Point<T>>: Clone, Option<Size<T>>: Clone,
type Refinement = BoundsRefinement<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,
impl<T: Clone + Debug + Copy + Default> Copy for Bounds<T>
impl<T: Eq + Clone + Default + Debug> Eq for Bounds<T>
impl<T: Clone + Default + Debug> StructuralEq for Bounds<T>
impl<T: Clone + Default + Debug> StructuralPartialEq for Bounds<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Bounds<T>where T: RefUnwindSafe,
impl<T> Send for Bounds<T>where T: Send,
impl<T> Sync for Bounds<T>where T: Sync,
impl<T> Unpin for Bounds<T>where T: Unpin,
impl<T> UnwindSafe for Bounds<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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
source§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.