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 · 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 ShiftOptions
impl Debug for ShiftOptions
Source§impl Default for ShiftOptions
impl Default for ShiftOptions
Source§fn default() -> ShiftOptions
fn default() -> ShiftOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShiftOptions
impl PartialEq for ShiftOptions
impl Copy for ShiftOptions
impl Eq for ShiftOptions
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