pub enum ObjectPosition {
Start,
Center,
End,
Pct(f64),
}Expand description
How an image node aligns its content within the declared box when the
fit mode leaves slack on an axis (contain, cover, none).
Pct(n) is an arbitrary 0–100 position; Start/Center/End are the
named anchors (equivalent to Pct(0), Pct(50), Pct(100)).
Variants§
Trait Implementations§
Source§impl Clone for ObjectPosition
impl Clone for ObjectPosition
Source§fn clone(&self) -> ObjectPosition
fn clone(&self) -> ObjectPosition
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 moreSource§impl Debug for ObjectPosition
impl Debug for ObjectPosition
Source§impl PartialEq for ObjectPosition
impl PartialEq for ObjectPosition
Source§fn eq(&self, other: &ObjectPosition) -> bool
fn eq(&self, other: &ObjectPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObjectPosition
Auto Trait Implementations§
impl Freeze for ObjectPosition
impl RefUnwindSafe for ObjectPosition
impl Send for ObjectPosition
impl Sync for ObjectPosition
impl Unpin for ObjectPosition
impl UnsafeUnpin for ObjectPosition
impl UnwindSafe for ObjectPosition
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