[−][src]Struct undo::RecordBuilder
Builder for a record.
Examples
Record::builder() .capacity(100) .limit(100) .saved(false) .default()
Methods
impl<R> RecordBuilder<R>
[src]
pub fn capacity(self, capacity: usize) -> RecordBuilder<R>
[src]
Sets the capacity for the record.
pub fn limit(self, limit: usize) -> RecordBuilder<R>
[src]
pub fn saved(self, saved: bool) -> RecordBuilder<R>
[src]
Sets if the receiver is initially in a saved state. By default the receiver is in a saved state.
pub fn connect(self, slot: impl FnMut(Signal) + 'static) -> RecordBuilder<R>
[src]
Decides how the signal should be handled when the state changes. By default the record does not handle any signals.
pub fn build(self, receiver: impl Into<R>) -> Record<R>
[src]
Builds the record.
impl<R: Default> RecordBuilder<R>
[src]
Trait Implementations
Auto Trait Implementations
impl<R> Unpin for RecordBuilder<R> where
R: Unpin,
R: Unpin,
impl<R> !Sync for RecordBuilder<R>
impl<R> !Send for RecordBuilder<R>
impl<R> !UnwindSafe for RecordBuilder<R>
impl<R> !RefUnwindSafe for RecordBuilder<R>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,