pub struct Edges<T> {
pub left: Option<T>,
pub right: Option<T>,
pub top: Option<T>,
pub bottom: Option<T>,
}Expand description
The four edges of a box, in the order ODF’s shorthand implies.
Fields§
§left: Option<T>Left.
right: Option<T>Right.
top: Option<T>Top.
bottom: Option<T>Bottom.
Trait Implementations§
impl<T: Copy> Copy for Edges<T>
Source§impl<T> Default for Edges<T>
Four edges, none of them set. Written out rather than derived because
deriving it would require the edge’s own type to have a default, and neither
a length nor a border has one that means anything: the absence of a border is
None, not a border of zero width.
impl<T> Default for Edges<T>
Four edges, none of them set. Written out rather than derived because
deriving it would require the edge’s own type to have a default, and neither
a length nor a border has one that means anything: the absence of a border is
None, not a border of zero width.
impl<T: PartialEq> StructuralPartialEq for Edges<T>
Auto Trait Implementations§
impl<T> Freeze for Edges<T>
impl<T> RefUnwindSafe for Edges<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for Edges<T>
impl<T> Sync for Edges<T>
impl<T> Unpin for Edges<T>
impl<T> UnsafeUnpin for Edges<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for Edges<T>where
Option<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