pub enum FlowDirection {
Ltr,
Rtl,
Ttb,
Btt,
}Expand description
Which way a crate::NodeGraph flows: the main axis along which children
are laid out away from the root, and which screen edge the root anchors to.
See the [module docs][self] for the full coordinate model. The default
(Rtl) preserves the original hard-coded behavior exactly — roots on the
right, children flowing leftward.
Variants§
Ltr
Left-to-right: root at the left edge, children flow rightward.
Rtl
Right-to-left: root at the right edge, children flow leftward. (The original hard-coded behavior; the default.)
Ttb
Top-to-bottom: root at the top edge, children flow downward.
Btt
Bottom-to-top: root at the bottom edge, children flow upward.
Trait Implementations§
Source§impl Clone for FlowDirection
impl Clone for FlowDirection
impl Copy for FlowDirection
Source§impl Debug for FlowDirection
impl Debug for FlowDirection
Source§impl Default for FlowDirection
impl Default for FlowDirection
impl Eq for FlowDirection
Source§impl PartialEq for FlowDirection
impl PartialEq for FlowDirection
impl StructuralPartialEq for FlowDirection
Auto Trait Implementations§
impl Freeze for FlowDirection
impl RefUnwindSafe for FlowDirection
impl Send for FlowDirection
impl Sync for FlowDirection
impl Unpin for FlowDirection
impl UnsafeUnpin for FlowDirection
impl UnwindSafe for FlowDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more