Struct egui::util::undoer::Settings [−][src]
Fields
max_undos: usizeMaximum number of undos. If your state is resource intensive, you should keep this low.
Default: 100
stable_time: f32When that state hasn’t changed for this many seconds, create a new undo point (if one is needed).
Default value: 1.0 seconds.
auto_save_interval: f32If the state is changing so often that we never get to stable_time,
then still create a save point every auto_save_interval seconds,
so we have something to undo to.
Default value: 30 seconds.
Trait Implementations
impl StructuralPartialEq for Settings[src]
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more