#[repr(C)]pub struct GenericCornerShapeRect<S> {
pub top_left: S,
pub top_right: S,
pub bottom_right: S,
pub bottom_left: S,
}Expand description
A generic value for the four corners of corner-shape.
This mirrors the per-corner layout of BorderRadius so it can be used as
the underlying storage for the four corner-*-*-shape longhands and their
shorthand corner-shape.
Fields§
§top_left: SThe top-left corner shape.
top_right: SThe top-right corner shape.
bottom_right: SThe bottom-right corner shape.
bottom_left: SThe bottom-left corner shape.
Implementations§
Source§impl<S: Clone> CornerShapeRect<S>
impl<S: Clone> CornerShapeRect<S>
Trait Implementations§
Source§impl<S: Clone> Clone for GenericCornerShapeRect<S>
impl<S: Clone> Clone for GenericCornerShapeRect<S>
Source§fn clone(&self) -> GenericCornerShapeRect<S>
fn clone(&self) -> GenericCornerShapeRect<S>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<S> Freeze for GenericCornerShapeRect<S>where
S: Freeze,
impl<S> RefUnwindSafe for GenericCornerShapeRect<S>where
S: RefUnwindSafe,
impl<S> Send for GenericCornerShapeRect<S>where
S: Send,
impl<S> Sync for GenericCornerShapeRect<S>where
S: Sync,
impl<S> Unpin for GenericCornerShapeRect<S>where
S: Unpin,
impl<S> UnsafeUnpin for GenericCornerShapeRect<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for GenericCornerShapeRect<S>where
S: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert