pub struct LimitShiftOptions<'a, Element: Clone + 'static, Window: Clone> {
    pub offset: Option<Derivable<'a, Element, Window, LimitShiftOffset>>,
    pub main_axis: Option<bool>,
    pub cross_axis: Option<bool>,
}Expand description
Options for LimitShift limiter.
Fields§
§offset: Option<Derivable<'a, Element, Window, LimitShiftOffset>>§main_axis: Option<bool>§cross_axis: Option<bool>Implementations§
source§impl<'a, Element: Clone, Window: Clone> LimitShiftOptions<'a, Element, Window>
 
impl<'a, Element: Clone, Window: Clone> LimitShiftOptions<'a, Element, Window>
sourcepub fn offset(self, value: LimitShiftOffset) -> Self
 
pub fn offset(self, value: LimitShiftOffset) -> Self
Set offset option.
sourcepub fn offset_derivable(
    self,
    value: Derivable<'a, Element, Window, LimitShiftOffset>,
) -> Self
 
pub fn offset_derivable( self, value: Derivable<'a, Element, Window, LimitShiftOffset>, ) -> Self
Set offset option with derivable offset.
sourcepub fn offset_derivable_fn(
    self,
    value: DerivableFn<'a, Element, Window, LimitShiftOffset>,
) -> Self
 
pub fn offset_derivable_fn( self, value: DerivableFn<'a, Element, Window, LimitShiftOffset>, ) -> Self
Set offset option with derivable offset function.
sourcepub fn cross_axis(self, value: bool) -> Self
 
pub fn cross_axis(self, value: bool) -> Self
Set cross_axis option.
Trait Implementations§
source§impl<'a, Element: Clone + Clone + 'static, Window: Clone + Clone> Clone for LimitShiftOptions<'a, Element, Window>
 
impl<'a, Element: Clone + Clone + 'static, Window: Clone + Clone> Clone for LimitShiftOptions<'a, Element, Window>
source§fn clone(&self) -> LimitShiftOptions<'a, Element, Window>
 
fn clone(&self) -> LimitShiftOptions<'a, Element, Window>
Returns a copy 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<'a, Element: Clone + 'static, Window: Clone> Default for LimitShiftOptions<'a, Element, Window>
 
impl<'a, Element: Clone + 'static, Window: Clone> Default for LimitShiftOptions<'a, Element, Window>
source§impl<'a, Element: PartialEq + Clone + 'static, Window: PartialEq + Clone> PartialEq for LimitShiftOptions<'a, Element, Window>
 
impl<'a, Element: PartialEq + Clone + 'static, Window: PartialEq + Clone> PartialEq for LimitShiftOptions<'a, Element, Window>
source§fn eq(&self, other: &LimitShiftOptions<'a, Element, Window>) -> bool
 
fn eq(&self, other: &LimitShiftOptions<'a, Element, Window>) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl<'a, Element: Clone + 'static, Window: Clone> StructuralPartialEq for LimitShiftOptions<'a, Element, Window>
Auto Trait Implementations§
impl<'a, Element, Window> Freeze for LimitShiftOptions<'a, Element, Window>
impl<'a, Element, Window> !RefUnwindSafe for LimitShiftOptions<'a, Element, Window>
impl<'a, Element, Window> !Send for LimitShiftOptions<'a, Element, Window>
impl<'a, Element, Window> !Sync for LimitShiftOptions<'a, Element, Window>
impl<'a, Element, Window> Unpin for LimitShiftOptions<'a, Element, Window>
impl<'a, Element, Window> !UnwindSafe for LimitShiftOptions<'a, Element, Window>
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)