#[repr(C)]pub struct Corners<T: Clone + Default + Debug> {
pub top_left: T,
pub top_right: T,
pub bottom_right: T,
pub bottom_left: T,
}
Fields§
§top_left: T
§top_right: T
§bottom_right: T
§bottom_left: T
Implementations§
source§impl Corners<AbsoluteLength>
impl Corners<AbsoluteLength>
Trait Implementations§
source§impl<T: Clone + Default + Debug> From<CornersRefinement<T>> for Corners<T>where
Option<T>: Clone,
impl<T: Clone + Default + Debug> From<CornersRefinement<T>> for Corners<T>where Option<T>: Clone,
source§fn from(value: CornersRefinement<T>) -> Self
fn from(value: CornersRefinement<T>) -> Self
Converts to this type from the input type.
source§impl<T, S> MulAssign<S> for Corners<T>where
T: Mul<S, Output = T> + Clone + Default + Debug,
S: Clone,
impl<T, S> MulAssign<S> for Corners<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<Corners<T>> for Corners<T>
impl<T: PartialEq + Clone + Default + Debug> PartialEq<Corners<T>> for Corners<T>
source§impl<T: Clone + Default + Debug> Refineable for Corners<T>where
Option<T>: Clone,
impl<T: Clone + Default + Debug> Refineable for Corners<T>where Option<T>: Clone,
type Refinement = CornersRefinement<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> Copy for Corners<T>where T: Copy + Clone + Default + Debug,
impl<T: Eq + Clone + Default + Debug> Eq for Corners<T>
impl<T: Clone + Default + Debug> StructuralEq for Corners<T>
impl<T: Clone + Default + Debug> StructuralPartialEq for Corners<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Corners<T>where T: RefUnwindSafe,
impl<T> Send for Corners<T>where T: Send,
impl<T> Sync for Corners<T>where T: Sync,
impl<T> Unpin for Corners<T>where T: Unpin,
impl<T> UnwindSafe for Corners<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.