pub struct Edges<T: Copy> {
pub top: T,
pub right: T,
pub bottom: T,
pub left: T,
}Expand description
Per-edge values (top, right, bottom, left). Used for margin, padding, border widths — anything that has four directional values.
Fields§
§top: T§right: T§bottom: T§left: TImplementations§
Trait Implementations§
impl<T: Copy + Copy> Copy for Edges<T>
impl<T: Copy> StructuralPartialEq for Edges<T>
Auto Trait Implementations§
impl<T> Freeze for Edges<T>where
T: Freeze,
impl<T> RefUnwindSafe for Edges<T>where
T: RefUnwindSafe,
impl<T> Send for Edges<T>where
T: Send,
impl<T> Sync for Edges<T>where
T: Sync,
impl<T> Unpin for Edges<T>where
T: Unpin,
impl<T> UnsafeUnpin for Edges<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Edges<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