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 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<Element: Clone + 'static, Window: Clone> Default for LimitShiftOptions<'_, Element, Window>
impl<Element: Clone + 'static, Window: Clone> Default for LimitShiftOptions<'_, 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