Struct redo::Group [] [src]

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

A group of either stacks or records.

Methods

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

[src]

Returns a new group.

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

[src]

Returns a builder for a group.

[src]

Returns the capacity of the group.

[src]

Returns the number of items in the group.

[src]

Returns true if the group is empty.

[src]

Inserts an item into the group.

[src]

Removes an item from the group.

[src]

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

[src]

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

[src]

Sets the current active item in the group.

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

[src]

Unsets the current active item in the group.

impl<'a, K: Hash + Eq, R, C: Command<R>, S: BuildHasher> Group<'a, K, Stack<R, C>, S>
[src]

[src]

Calls the push method on the active stack.

[src]

Calls the pop method on the active stack.

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

[src]

Calls the set_saved method on the active record.

[src]

Calls the set_unsaved method on the active record.

[src]

Calls the is_saved method on the active record.

[src]

Calls the exec method on the active record.

[src]

Calls the undo method on the active record.

[src]

Calls the redo method on the active record.

impl<'a, K: Hash + Eq, R, C: Command<R> + ToString, S: BuildHasher> Group<'a, K, Record<'a, R, C>, S>
[src]

[src]

Calls the to_undo_string method on the active record.

[src]

Calls the to_redo_string method on the active record.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

Auto Trait Implementations

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

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