Struct rundo_types::primitive_type::ValueType [] [src]

pub struct ValueType<T> where
    T: Clone + PartialEq
{ /* fields omitted */ }

Value type like a memory undo/redo type. Rundo will clone its origin value as a backup, so Clone must be implemented. Be careful use it for struct or other big size type, OpType is design for this scenario, or you must implment your custrom rundo type.

Trait Implementations

impl<T> Deref for ValueType<T> where
    T: Clone + PartialEq
[src]

impl Deref let ValueType transparent to user access T value.

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T> DerefMut for ValueType<T> where
    T: Clone + PartialEq
[src]

when user try to get a mut refercence, Rundo know what changed in the later.

[src]

Mutably dereferences the value.

impl<T> From<T> for ValueType<T> where
    T: Clone + PartialEq
[src]

[src]

Performs the conversion.

impl<T> AsMut<T> for ValueType<T> where
    T: 'static + Clone + PartialEq
[src]

[src]

Performs the conversion.

impl<T> AsRef<T> for ValueType<T> where
    T: 'static + Clone + PartialEq
[src]

[src]

Performs the conversion.

impl<T> Rundo for ValueType<T> where
    T: Clone + PartialEq + Debug + Primitive
[src]

[src]

if this node has been changed between from the last step to current.

[src]

Reset the node change state which mean changes has been record by workspace, or changes will be ignore. Read more

[src]

Use Op to describe the change infos.

[src]

Use an Op and back to the previous data status

[src]

Go to the next version of the data should be with a Op.

impl Rundo for ValueType<String>
[src]

[src]

if this node has been changed between from the last step to current.

[src]

Reset the node change state which mean changes has been record by workspace, or changes will be ignore. Read more

[src]

Use Op to describe the change infos.

[src]

Use an Op and back to the previous data status

[src]

Go to the next version of the data should be with a Op.

Auto Trait Implementations

impl<T> Send for ValueType<T> where
    T: Send

impl<T> Sync for ValueType<T> where
    T: Sync