pub enum Direction {
LeftToRight,
RightToLeft,
TopDown,
BottomUp,
}
Expand description
Layout direction, one of LeftToRight
, RightToLeft
, TopDown
, BottomUp
.
Variants§
Implementations§
source§impl Direction
impl Direction
pub fn is_horizontal(self) -> bool
pub fn is_vertical(self) -> bool
Trait Implementations§
source§impl PartialEq for Direction
impl PartialEq for Direction
impl Copy for Direction
impl Eq for Direction
impl StructuralEq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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