#[non_exhaustive]pub enum RankAlignment {
Center,
Start,
}Expand description
How the nodes of one rank line up on the layer axis.
A rank’s nodes can differ in extent along the layer axis (height for
Direction::TopToBottom, width for Direction::LeftToRight). Either
they share a centre line, or they share the rank’s leading edge.
Marked #[non_exhaustive] so further alignments (e.g. End) can be added
without breaking callers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Center
Each node is centred on its rank’s centre line (default).
Start
Each node starts at its rank’s leading edge: the rank’s top for
Direction::TopToBottom, its left for Direction::LeftToRight.
Trait Implementations§
Source§impl Clone for RankAlignment
impl Clone for RankAlignment
impl Copy for RankAlignment
Source§impl Debug for RankAlignment
impl Debug for RankAlignment
Source§impl Default for RankAlignment
impl Default for RankAlignment
impl Eq for RankAlignment
Source§impl PartialEq for RankAlignment
impl PartialEq for RankAlignment
impl StructuralPartialEq for RankAlignment
Auto Trait Implementations§
impl Freeze for RankAlignment
impl RefUnwindSafe for RankAlignment
impl Send for RankAlignment
impl Sync for RankAlignment
impl Unpin for RankAlignment
impl UnsafeUnpin for RankAlignment
impl UnwindSafe for RankAlignment
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§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.