pub struct AnchorPlacement {
pub side: AnchorSide,
pub align: AnchorAlign,
pub gap: f64,
pub viewport_padding: f64,
pub flip: bool,
pub shift: bool,
}Expand description
Finite anchored-layer policy, in viewport CSS pixels. Flip compares the requested and opposite side; shift clamps both axes to viewport padding. Neither policy changes the declared side or the logical anchor relation.
Fields§
§side: AnchorSide§align: AnchorAlign§gap: f64§viewport_padding: f64§flip: bool§shift: boolImplementations§
Source§impl AnchorPlacement
impl AnchorPlacement
Trait Implementations§
Source§impl Clone for AnchorPlacement
impl Clone for AnchorPlacement
impl Copy for AnchorPlacement
Source§impl Debug for AnchorPlacement
impl Debug for AnchorPlacement
Source§impl Default for AnchorPlacement
impl Default for AnchorPlacement
Source§impl PartialEq for AnchorPlacement
impl PartialEq for AnchorPlacement
impl StructuralPartialEq for AnchorPlacement
Auto Trait Implementations§
impl Freeze for AnchorPlacement
impl RefUnwindSafe for AnchorPlacement
impl Send for AnchorPlacement
impl Sync for AnchorPlacement
impl Unpin for AnchorPlacement
impl UnsafeUnpin for AnchorPlacement
impl UnwindSafe for AnchorPlacement
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