pub struct Corners4<T> {
pub top_left: T,
pub top_right: T,
pub bottom_right: T,
pub bottom_left: T,
}Expand description
A 4-corner value (top-left/top-right/bottom-right/bottom-left) used for fluent authoring ergonomics.
This intentionally lives in the ecosystem layer (fret-ui-kit) and is token-aware via
Radius/MetricRef conversions (unlike fret_core::Corners, which is Px-only).
Fields§
§top_left: T§top_right: T§bottom_right: T§bottom_left: TImplementations§
Trait Implementations§
impl<T> StructuralPartialEq for Corners4<T>
Auto Trait Implementations§
impl<T> Freeze for Corners4<T>where
T: Freeze,
impl<T> RefUnwindSafe for Corners4<T>where
T: RefUnwindSafe,
impl<T> Send for Corners4<T>where
T: Send,
impl<T> Sync for Corners4<T>where
T: Sync,
impl<T> Unpin for Corners4<T>where
T: Unpin,
impl<T> UnsafeUnpin for Corners4<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Corners4<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