pub struct Edges {
pub top: bool,
pub right: bool,
pub bottom: bool,
pub left: bool,
}Expand description
A set of edges, as four independent flags — which sides of a box an operation
applies to. Used by crate::SafeArea to pick the edges it insets, and by
MediaQuery::remove_padding to pick the ones it consumes.
Fields§
§top: boolThe top edge.
right: boolThe right edge.
bottom: boolThe bottom edge.
left: boolThe left edge.
Implementations§
Source§impl Edges
impl Edges
Sourcepub const HORIZONTAL: Self
pub const HORIZONTAL: Self
Left and right only.
Sourcepub const fn without_top(self) -> Self
pub const fn without_top(self) -> Self
The same set without its top edge.
Sourcepub const fn without_right(self) -> Self
pub const fn without_right(self) -> Self
The same set without its right edge.
Sourcepub const fn without_bottom(self) -> Self
pub const fn without_bottom(self) -> Self
The same set without its bottom edge.
Sourcepub const fn without_left(self) -> Self
pub const fn without_left(self) -> Self
The same set without its left edge.
Trait Implementations§
impl Copy for Edges
impl Eq for Edges
impl StructuralPartialEq for Edges
Auto Trait Implementations§
impl Freeze for Edges
impl RefUnwindSafe for Edges
impl Send for Edges
impl Sync for Edges
impl Unpin for Edges
impl UnsafeUnpin for Edges
impl UnwindSafe for Edges
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