Struct redo::Group [] [src]

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

A group of either stacks or records.

Methods

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

[src]

Returns a new group.

[src]

Returns a new group with the given capacity.

[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 the current active item in the group.

[src]

Sets the current active item in the group.

impl<K: Hash + Eq, R, C: Command<R>> Group<K, Stack<R, C>>
[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>> Group<K, Record<'a, R, C>>
[src]

[src]

Calls the is_clean method on the active record.

[src]

Calls the is_dirty method on the active record.

[src]

Calls the push method on the active record.

[src]

Calls the redo method on the active record.

[src]

Calls the undo method on the active record.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

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