[−][src]Struct redo::RecordBuilder
Builder for a record.
Examples
Record::builder() .capacity(100) .limit(100) .saved(false) .default()
Methods
impl<C: Command> RecordBuilder<C>
[src]
pub fn new() -> RecordBuilder<C>
[src]
Returns a builder for a record.
pub fn capacity(self, capacity: usize) -> RecordBuilder<C>
[src]
Sets the capacity for the record.
pub fn limit(self, limit: usize) -> RecordBuilder<C>
[src]
pub fn saved(self, saved: bool) -> RecordBuilder<C>
[src]
Sets if the target is initially in a saved state. By default the target is in a saved state.
pub fn build(self, target: C::Target) -> Record<C>
[src]
Builds the record.
pub fn build_with<F>(self, target: C::Target, slot: F) -> Record<C, F>
[src]
Builds the record with the slot.
impl<C: Command> RecordBuilder<C> where
C::Target: Default,
[src]
C::Target: Default,
pub fn default(self) -> Record<C>
[src]
Creates the record with a default target
.
pub fn default_with<F>(self, slot: F) -> Record<C, F>
[src]
Creates the record with a default target
.
Trait Implementations
impl<C: Debug + Command> Debug for RecordBuilder<C>
[src]
impl<C: PartialEq + Command> PartialEq<RecordBuilder<C>> for RecordBuilder<C>
[src]
fn eq(&self, other: &RecordBuilder<C>) -> bool
[src]
fn ne(&self, other: &RecordBuilder<C>) -> bool
[src]
impl<C: Eq + Command> Eq for RecordBuilder<C>
[src]
impl<C: Ord + Command> Ord for RecordBuilder<C>
[src]
fn cmp(&self, other: &RecordBuilder<C>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<C: PartialOrd + Command> PartialOrd<RecordBuilder<C>> for RecordBuilder<C>
[src]
fn partial_cmp(&self, other: &RecordBuilder<C>) -> Option<Ordering>
[src]
fn lt(&self, other: &RecordBuilder<C>) -> bool
[src]
fn le(&self, other: &RecordBuilder<C>) -> bool
[src]
fn gt(&self, other: &RecordBuilder<C>) -> bool
[src]
fn ge(&self, other: &RecordBuilder<C>) -> bool
[src]
impl<C: Hash + Command> Hash for RecordBuilder<C>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<C: Command> StructuralPartialEq for RecordBuilder<C>
[src]
impl<C: Command> StructuralEq for RecordBuilder<C>
[src]
impl<C: Clone + Command> Clone for RecordBuilder<C>
[src]
fn clone(&self) -> RecordBuilder<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Command> Default for RecordBuilder<C>
[src]
impl<C: Command> Serialize for RecordBuilder<C>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, C: Command> Deserialize<'de> for RecordBuilder<C>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<C> Unpin for RecordBuilder<C> where
C: Unpin,
C: Unpin,
impl<C> Send for RecordBuilder<C> where
C: Send,
C: Send,
impl<C> Sync for RecordBuilder<C> where
C: Sync,
C: Sync,
impl<C> UnwindSafe for RecordBuilder<C> where
C: UnwindSafe,
C: UnwindSafe,
impl<C> RefUnwindSafe for RecordBuilder<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,