Struct redo::HistoryBuilder
source · pub struct HistoryBuilder<R, C: Command<R>> { /* private fields */ }
Expand description
Builder for a History.
Implementations
sourceimpl<R, C: Command<R>> HistoryBuilder<R, C>
impl<R, C: Command<R>> HistoryBuilder<R, C>
sourcepub fn capacity(self, capacity: usize) -> HistoryBuilder<R, C>
pub fn capacity(self, capacity: usize) -> HistoryBuilder<R, C>
Sets the capacity for the history.
sourcepub fn limit(self, limit: usize) -> HistoryBuilder<R, C>
pub fn limit(self, limit: usize) -> HistoryBuilder<R, C>
sourcepub fn saved(self, saved: bool) -> HistoryBuilder<R, C>
pub fn saved(self, saved: bool) -> HistoryBuilder<R, C>
Sets if the receiver is initially in a saved state. By default the receiver is in a saved state.
Trait Implementations
Auto Trait Implementations
impl<R, C> !RefUnwindSafe for HistoryBuilder<R, C>
impl<R, C> Send for HistoryBuilder<R, C>where
C: Send,
R: Send,
impl<R, C> Sync for HistoryBuilder<R, C>where
C: Sync,
R: Sync,
impl<R, C> Unpin for HistoryBuilder<R, C>where
C: Unpin,
R: Unpin,
impl<R, C> !UnwindSafe for HistoryBuilder<R, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more