Struct undo::Group[][src]

pub struct Group<K: Hash + Eq, V, S = RandomState> { /* fields omitted */ }

A group of records.

Methods

impl<K: Hash + Eq, V> Group<K, V, RandomState>
[src]

Returns a new group.

impl<'a, K: Hash + Eq, V, S: BuildHasher> Group<K, V, S>
[src]

Returns a builder for a group.

Reserves capacity for at least additional more items.

Panics

Panics if the new capacity overflows usize.

Returns the capacity of the group.

Returns the number of items in the group.

Returns true if the group is empty.

Sets how different signals should be handled when the state changes.

Inserts an item into the group.

Removes an item from the group.

Gets a reference to the current active item in the group.

Gets a mutable reference to the current active item in the group.

Sets the current active item in the group.

Returns None if the item was successfully set, otherwise k is returned.

Unsets the current active item in the group.

impl<K: Hash + Eq, R, S: BuildHasher> Group<K, Record<R>, S>
[src]

Calls the set_saved method on the active record.

Calls the set_unsaved method on the active record.

Calls the is_saved method on the active record.

Calls the apply method on the active record.

Calls the undo method on the active record.

Calls the redo method on the active record.

Calls the cursor method on the active record.

Calls the set_cursor method on the active record.

Returns an iterator over the records.

Trait Implementations

impl<K: Hash + Eq + Debug, V: Debug, S: BuildHasher> Debug for Group<K, V, S>
[src]

Formats the value using the given formatter. Read more

impl<K: Hash + Eq, V> Default for Group<K, V, RandomState>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<K, V, S> Send for Group<K, V, S> where
    K: Send,
    S: Send,
    V: Send

impl<K, V, S> Sync for Group<K, V, S> where
    K: Sync,
    S: Sync,
    V: Sync