pub struct Edges4<T> {
pub top: T,
pub right: T,
pub bottom: T,
pub left: T,
}Expand description
A 4-edge value (top/right/bottom/left) used for fluent authoring ergonomics.
This intentionally lives in the ecosystem layer (fret-ui-kit) and is token-aware via
Space/MetricRef conversions (unlike fret_core::Edges, which is Px-only).
Fields§
§top: T§right: T§bottom: T§left: TImplementations§
Source§impl Edges4<Space>
impl Edges4<Space>
pub fn pos(self) -> Edges4<SignedMetricRef>
pub fn neg(self) -> Edges4<SignedMetricRef>
Trait Implementations§
Source§impl From<Edges4<SignedMetricRef>> for Edges4<MarginEdge>
impl From<Edges4<SignedMetricRef>> for Edges4<MarginEdge>
Source§fn from(value: Edges4<SignedMetricRef>) -> Self
fn from(value: Edges4<SignedMetricRef>) -> Self
Converts to this type from the input type.
impl<T> StructuralPartialEq for Edges4<T>
Auto Trait Implementations§
impl<T> Freeze for Edges4<T>where
T: Freeze,
impl<T> RefUnwindSafe for Edges4<T>where
T: RefUnwindSafe,
impl<T> Send for Edges4<T>where
T: Send,
impl<T> Sync for Edges4<T>where
T: Sync,
impl<T> Unpin for Edges4<T>where
T: Unpin,
impl<T> UnsafeUnpin for Edges4<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Edges4<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