pub enum Edge {
Start,
End,
}Expand description
A logical position along a primary axis.
Start is the side a reader’s eye begins at; End is where it finishes.
In LTR this maps to (Left, Right); in RTL it maps to (Right, Left).
Variants§
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn is_left_under(self, direction: LayoutDirection) -> bool
pub fn is_left_under(self, direction: LayoutDirection) -> bool
Resolve this logical edge to a physical side for a given direction.
Returns true for “left”, false for “right”.
Trait Implementations§
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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