pub struct Builder<A, S = Nop>(_);
Expand description
Builder for a History.
let mut history = History::builder()
.limit(100)
.capacity(100)
.connect(|s| { dbg!(s); })
.build();
Returns a builder for a history.
Sets the capacity for the history.
Sets the limit
for the history.
Panics if limit
is 0
.
Sets if the target is initially in a saved state.
By default the target is in a saved state.
Formats the value using the given formatter.
Read more
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.