Struct undo::HistoryBuilder
source · pub struct HistoryBuilder<R> { /* private fields */ }
Expand description
Builder for a History.
Implementations§
source§impl<R> HistoryBuilder<R>
impl<R> HistoryBuilder<R>
sourcepub fn capacity(self, capacity: usize) -> HistoryBuilder<R>
pub fn capacity(self, capacity: usize) -> HistoryBuilder<R>
Sets the specified capacity for the history.
sourcepub fn limit(self, limit: usize) -> HistoryBuilder<R>
pub fn limit(self, limit: usize) -> HistoryBuilder<R>
sourcepub fn saved(self, saved: bool) -> HistoryBuilder<R>
pub fn saved(self, saved: bool) -> HistoryBuilder<R>
Sets if the receiver is initially in a saved state. By default the receiver is in a saved state.