pub struct ShiftOptions {
pub main_axis: bool,
pub cross_axis: bool,
}Expand description
Shift configuration inspired by Floating UI’s shift() middleware.
main_axisclamps the panel along the placement axis (y for Top/Bottom, x for Left/Right).cross_axisclamps the panel along the alignment axis (x for Top/Bottom, y for Left/Right).
Fields§
§main_axis: bool§cross_axis: boolTrait Implementations§
Source§impl Clone for ShiftOptions
impl Clone for ShiftOptions
Source§fn clone(&self) -> ShiftOptions
fn clone(&self) -> ShiftOptions
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 ShiftOptions
Source§impl Debug for ShiftOptions
impl Debug for ShiftOptions
Source§impl Default for ShiftOptions
impl Default for ShiftOptions
impl Eq for ShiftOptions
Source§impl PartialEq for ShiftOptions
impl PartialEq for ShiftOptions
Source§fn eq(&self, other: &ShiftOptions) -> bool
fn eq(&self, other: &ShiftOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShiftOptions
Auto Trait Implementations§
impl Freeze for ShiftOptions
impl RefUnwindSafe for ShiftOptions
impl Send for ShiftOptions
impl Sync for ShiftOptions
impl Unpin for ShiftOptions
impl UnsafeUnpin for ShiftOptions
impl UnwindSafe for ShiftOptions
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