Skip to main content

Writable

Trait Writable 

Source
pub trait Writable<V>: Readable<V> {
    // Required method
    fn write(&self, root: AtomRoot, value: V);
}
Expand description

All Atoms are Writable - they support writing their value.

This trait lets Dioxus abstract over Atoms, AtomFamilies, AtomRefs, and Selectors. This trait lets Dioxus abstract over Atoms, AtomFamilies, AtomRefs, and Selectors

Required Methods§

Source

fn write(&self, root: AtomRoot, value: V)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<K, V> Writable<HashMap<K, V>> for &'static AtomFamily<K, V>

Source§

impl<V> Writable<V> for &'static Atom<V>