reactive_stores

Trait Patch

Source
pub trait Patch {
    type Value;

    // Required method
    fn patch(&self, new: Self::Value);
}
Expand description

Allows updating a store or field in place with a new value.

Required Associated Types§

Source

type Value

The type of the new value.

Required Methods§

Source

fn patch(&self, new: Self::Value)

Patches a store or field with a new value, only notifying fields that have changed.

Implementors§

Source§

impl<T> Patch for T
where T: StoreField, T::Value: PatchField,