pub struct LimitShift<'a, Element: Clone + 'static, Window: Clone> { /* private fields */ }
Implementations§
Source§impl<'a, Element: Clone, Window: Clone> LimitShift<'a, Element, Window>
impl<'a, Element: Clone, Window: Clone> LimitShift<'a, Element, Window>
pub fn new(options: LimitShiftOptions<'a, Element, Window>) -> Self
Trait Implementations§
Source§impl<'a, Element: Clone + Clone + 'static, Window: Clone + Clone> Clone for LimitShift<'a, Element, Window>
impl<'a, Element: Clone + Clone + 'static, Window: Clone + Clone> Clone for LimitShift<'a, Element, Window>
Source§fn clone(&self) -> LimitShift<'a, Element, Window>
fn clone(&self) -> LimitShift<'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<'a, Element: Default + Clone + 'static, Window: Default + Clone> Default for LimitShift<'a, Element, Window>
impl<'a, Element: Default + Clone + 'static, Window: Default + Clone> Default for LimitShift<'a, Element, Window>
Source§fn default() -> LimitShift<'a, Element, Window>
fn default() -> LimitShift<'a, Element, Window>
Returns the “default value” for a type. Read more
Source§impl<Element: Clone + PartialEq, Window: Clone + PartialEq> Limiter<Element, Window> for LimitShift<'static, Element, Window>
impl<Element: Clone + PartialEq, Window: Clone + PartialEq> Limiter<Element, Window> for LimitShift<'static, Element, Window>
fn compute(&self, state: MiddlewareState<'_, Element, Window>) -> Coords
Source§impl<'a, Element: PartialEq + Clone + 'static, Window: PartialEq + Clone> PartialEq for LimitShift<'a, Element, Window>
impl<'a, Element: PartialEq + Clone + 'static, Window: PartialEq + Clone> PartialEq for LimitShift<'a, Element, Window>
Source§fn eq(&self, other: &LimitShift<'a, Element, Window>) -> bool
fn eq(&self, other: &LimitShift<'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 LimitShift<'a, Element, Window>
Auto Trait Implementations§
impl<'a, Element, Window> Freeze for LimitShift<'a, Element, Window>
impl<'a, Element, Window> !RefUnwindSafe for LimitShift<'a, Element, Window>
impl<'a, Element, Window> !Send for LimitShift<'a, Element, Window>
impl<'a, Element, Window> !Sync for LimitShift<'a, Element, Window>
impl<'a, Element, Window> Unpin for LimitShift<'a, Element, Window>
impl<'a, Element, Window> !UnwindSafe for LimitShift<'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