pub struct Corners<T> {
pub top_left: T,
pub top_right: T,
pub bottom_right: T,
pub bottom_left: T,
}Expand description
radii of a rounded rectangle
Fields§
§top_left: T§top_right: T§bottom_right: T§bottom_left: TImplementations§
Source§impl<T: Scalar> Corners<T>
impl<T: Scalar> Corners<T>
Sourcepub fn top_left(self, value: T) -> Self
pub fn top_left(self, value: T) -> Self
sets Self::top_left
Sourcepub fn top_right(self, value: T) -> Self
pub fn top_right(self, value: T) -> Self
sets Self::top_right
Sourcepub fn bottom_right(self, value: T) -> Self
pub fn bottom_right(self, value: T) -> Self
sets Self::bottom_right
Sourcepub fn bottom_left(self, value: T) -> Self
pub fn bottom_left(self, value: T) -> Self
sets Self::bottom_left
Trait Implementations§
impl<T: Copy> Copy for Corners<T>
impl<T: PartialEq> StructuralPartialEq for Corners<T>
Auto Trait Implementations§
impl<T> Forget for Corners<T>
impl<T> Freeze for Corners<T>where
T: Freeze,
impl<T> Move for Corners<T>
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> UnsafeUnpin for Corners<T>where
T: UnsafeUnpin,
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