pub struct LinearDwellPolicy {
pub params: DwellParams,
}Expand description
Linear dwell policy backed by DwellParams.
Fields§
§params: DwellParamsDwell parameters used by this policy.
Implementations§
Source§impl LinearDwellPolicy
impl LinearDwellPolicy
Sourcepub fn new(params: DwellParams) -> Self
pub fn new(params: DwellParams) -> Self
Create a linear dwell policy from explicit parameters.
Trait Implementations§
Source§impl Clone for LinearDwellPolicy
impl Clone for LinearDwellPolicy
Source§fn clone(&self) -> LinearDwellPolicy
fn clone(&self) -> LinearDwellPolicy
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 LinearDwellPolicy
impl Debug for LinearDwellPolicy
Source§impl Default for LinearDwellPolicy
impl Default for LinearDwellPolicy
Source§fn default() -> LinearDwellPolicy
fn default() -> LinearDwellPolicy
Returns the “default value” for a type. Read more
Source§impl DwellPolicy for LinearDwellPolicy
impl DwellPolicy for LinearDwellPolicy
Source§impl PartialEq for LinearDwellPolicy
impl PartialEq for LinearDwellPolicy
impl Copy for LinearDwellPolicy
impl StructuralPartialEq for LinearDwellPolicy
Auto Trait Implementations§
impl Freeze for LinearDwellPolicy
impl RefUnwindSafe for LinearDwellPolicy
impl Send for LinearDwellPolicy
impl Sync for LinearDwellPolicy
impl Unpin for LinearDwellPolicy
impl UnsafeUnpin for LinearDwellPolicy
impl UnwindSafe for LinearDwellPolicy
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