pub enum Position {
Relative,
Absolute,
Static,
}Expand description
position (styles.ts:415–442).
Yoga has three values: absolute, relative, and static.
Taffy only has Relative and Absolute — static maps to Relative
(divergence documented in style_to_taffy).
Variants§
Relative
Absolute
Static
Yoga-only; taffy backend maps to Relative. The difference is visible
only when inset (top/right/bottom/left) is set on a static node: yoga
ignores inset for static (styles.ts:21), but this mapping honors it.
Accepted: ink’s API documents static as ignoring offsets (styles.ts:21)
and Box never defaults to static.
Trait Implementations§
impl Copy for Position
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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