pub enum Anchor {
TopLeft,
TopCenter,
TopRight,
CenterLeft,
Center,
CenterRight,
BottomLeft,
BottomCenter,
BottomRight,
}Expand description
One of the nine named page-relative placement anchors.
An anchor supplies BOTH the x and y of a node from the page dimensions;
an explicitly-authored x or y on the node overrides the corresponding
anchor-derived coordinate. The node’s w and h must be present and in a
px-convertible unit for derivation to succeed; when they are absent or
use a non-px unit the anchor is silently skipped (the node remains incomplete
and the compile step emits the usual scene.missing_geometry advisory).
Variants§
Trait Implementations§
impl Copy for Anchor
impl Eq for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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