ReadStore

Type Alias ReadStore 

Source
pub type ReadStore<T, S = UnsyncStorage> = Store<T, ReadSignal<T, S>>;
Expand description

A type alias for a boxed read-only store.

Aliased Type§

pub struct ReadStore<T, S = UnsyncStorage> { /* private fields */ }

Trait Implementations§

Source§

impl<T, S> From<Store<T, CopyValue<T, S>>> for ReadStore<T, S>
where T: 'static, S: BoxedSignalStorage<T> + CreateBoxedSignalStorage<CopyValue<T, S>> + Storage<T>,

Source§

fn from(value: Store<T, CopyValue<T, S>>) -> Self

Converts to this type from the input type.
Source§

impl<Idx, T, Write> From<Store<T, IndexWrite<Idx, Write>>> for ReadStore<T>
where Write: Readable<Storage = UnsyncStorage> + 'static, Write::Target: Index<Idx, Output = T> + 'static, Idx: Clone + 'static, T: 'static,

Source§

fn from(value: Store<T, IndexWrite<Idx, Write>>) -> Self

Converts to this type from the input type.
Source§

impl<__F, __FMut, T, S, Lens> From<Store<T, MappedMutSignal<T, Lens, __F, __FMut>>> for ReadStore<T, S>
where Lens: Writable<Storage = S> + 'static, __F: Fn(&Lens::Target) -> &T + 'static, __FMut: Fn(&mut Lens::Target) -> &mut T + 'static, S: BoxedSignalStorage<T> + CreateBoxedSignalStorage<MappedMutSignal<T, Lens, __F, __FMut>>, T: 'static + ?Sized,

Source§

fn from(value: Store<T, MappedMutSignal<T, Lens, __F, __FMut>>) -> Self

Converts to this type from the input type.
Source§

impl<T, S> From<Store<T, WriteSignal<T, S>>> for ReadStore<T, S>
where T: ?Sized + 'static, S: BoxedSignalStorage<T> + CreateBoxedSignalStorage<WriteSignal<T, S>>,

Source§

fn from(value: Store<T, WriteSignal<T, S>>) -> Self

Converts to this type from the input type.
Source§

impl<Index, Write, K, V> From<Store<V, GetWrite<Index, Write>>> for ReadStore<V>
where Write: Readable<Target = BTreeMap<K, V>, Storage = UnsyncStorage> + 'static, Index: Ord + 'static, K: Borrow<Index> + Ord + 'static, V: 'static,

Source§

fn from(value: Store<V, GetWrite<Index, Write>>) -> Self

Converts to this type from the input type.
Source§

impl<Index, Write, K, V, St> From<Store<V, GetWrite<Index, Write>>> for ReadStore<V>
where Write: Readable<Target = HashMap<K, V, St>, Storage = UnsyncStorage> + 'static, Index: Hash + Eq + 'static, K: Borrow<Index> + Eq + Hash + 'static, St: BuildHasher + 'static, V: 'static,

Source§

fn from(value: Store<V, GetWrite<Index, Write>>) -> Self

Converts to this type from the input type.