pub enum AnchorEdge {
Above,
Below,
Before,
After,
}Expand description
One of the four adjacent-edge directions for anchor-edge placement.
When a node carries both anchor-sibling and anchor-edge, the node is
placed flush against the named edge of the sibling rather than within the
sibling’s box. An optional 9-point anchor on the same node controls
cross-axis alignment (e.g. centering horizontally when placed below).
Variants§
Trait Implementations§
Source§impl Clone for AnchorEdge
impl Clone for AnchorEdge
Source§fn clone(&self) -> AnchorEdge
fn clone(&self) -> AnchorEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnchorEdge
Source§impl Debug for AnchorEdge
impl Debug for AnchorEdge
impl Eq for AnchorEdge
Source§impl PartialEq for AnchorEdge
impl PartialEq for AnchorEdge
Source§fn eq(&self, other: &AnchorEdge) -> bool
fn eq(&self, other: &AnchorEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnchorEdge
Auto Trait Implementations§
impl Freeze for AnchorEdge
impl RefUnwindSafe for AnchorEdge
impl Send for AnchorEdge
impl Sync for AnchorEdge
impl Unpin for AnchorEdge
impl UnsafeUnpin for AnchorEdge
impl UnwindSafe for AnchorEdge
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