pub struct Settings { /* private fields */ }
Expand description
Typed autorepeat settings. Use Default::default() and the into_with_*
to create a new instance.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn into_with_delay(self, delay: MonotonicDuration) -> Self
pub fn into_with_delay(self, delay: MonotonicDuration) -> Self
Modifies the delay.
Sourcepub fn into_with_period(self, period: MonotonicDuration) -> Self
pub fn into_with_period(self, period: MonotonicDuration) -> Self
Modifies the period.
Trait Implementations§
Source§impl From<Autorepeat> for Settings
impl From<Autorepeat> for Settings
Source§fn from(s: Autorepeat) -> Self
fn from(s: Autorepeat) -> Self
Conversion, since fsettings::Autorepeat has untyped delay and period.
impl Copy for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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
)