[−][src]Struct sodium_rust::Cell
Fields
impl_: CellImpl<A>
Methods
impl<A: Clone + Send + 'static> Cell<A>
[src]
pub fn new(sodium_ctx: &SodiumCtx, value: A) -> Cell<A>
[src]
pub fn sample(&self) -> A
[src]
pub fn sample_lazy(&self) -> Lazy<A>
[src]
pub fn to_dep(&self) -> Dep
[src]
pub fn updates(&self) -> Stream<A>
[src]
pub fn value(&self) -> Stream<A>
[src]
pub fn map<B: Clone + Send + 'static, FN: IsLambda1<A, B> + Send + Sync + 'static>(
&self,
f: FN
) -> Cell<B>
[src]
&self,
f: FN
) -> Cell<B>
pub fn lift2<B: Clone + Send + 'static, C: Clone + Send + 'static, FN: IsLambda2<A, B, C> + Send + 'static>(
&self,
cb: &Cell<B>,
f: FN
) -> Cell<C>
[src]
&self,
cb: &Cell<B>,
f: FN
) -> Cell<C>
pub fn lift3<B: Clone + Send + 'static, C: Clone + Send + 'static, D: Clone + Send + 'static, FN: IsLambda3<A, B, C, D> + Send + 'static>(
&self,
cb: &Cell<B>,
cc: &Cell<C>,
f: FN
) -> Cell<D>
[src]
&self,
cb: &Cell<B>,
cc: &Cell<C>,
f: FN
) -> Cell<D>
pub fn lift4<B: Clone + Send + 'static, C: Clone + Send + 'static, D: Clone + Send + 'static, E: Clone + Send + 'static, FN: IsLambda4<A, B, C, D, E> + Send + 'static>(
&self,
cb: &Cell<B>,
cc: &Cell<C>,
cd: &Cell<D>,
f: FN
) -> Cell<E>
[src]
&self,
cb: &Cell<B>,
cc: &Cell<C>,
cd: &Cell<D>,
f: FN
) -> Cell<E>
pub fn lift5<B: Clone + Send + 'static, C: Clone + Send + 'static, D: Clone + Send + 'static, E: Clone + Send + 'static, F: Clone + Send + 'static, FN: IsLambda5<A, B, C, D, E, F> + Send + 'static>(
&self,
cb: &Cell<B>,
cc: &Cell<C>,
cd: &Cell<D>,
ce: &Cell<E>,
f: FN
) -> Cell<F>
[src]
&self,
cb: &Cell<B>,
cc: &Cell<C>,
cd: &Cell<D>,
ce: &Cell<E>,
f: FN
) -> Cell<F>
pub fn lift6<B: Clone + Send + 'static, C: Clone + Send + 'static, D: Clone + Send + 'static, E: Clone + Send + 'static, F: Clone + Send + 'static, G: Clone + Send + 'static, FN: IsLambda6<A, B, C, D, E, F, G> + Send + 'static>(
&self,
cb: &Cell<B>,
cc: &Cell<C>,
cd: &Cell<D>,
ce: &Cell<E>,
cf: &Cell<F>,
f: FN
) -> Cell<G>
[src]
&self,
cb: &Cell<B>,
cc: &Cell<C>,
cd: &Cell<D>,
ce: &Cell<E>,
cf: &Cell<F>,
f: FN
) -> Cell<G>
pub fn switch_s(csa: &Cell<Stream<A>>) -> Stream<A>
[src]
pub fn switch_c(cca: &Cell<Cell<A>>) -> Cell<A>
[src]
pub fn listen_weak<K: FnMut(&A) + Send + Sync + 'static>(
&self,
k: K
) -> Listener
[src]
&self,
k: K
) -> Listener
pub fn listen<K: IsLambda1<A, ()> + Send + Sync + 'static>(
&self,
k: K
) -> Listener
[src]
&self,
k: K
) -> Listener
Trait Implementations
impl<A> Clone for Cell<A>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<A> !RefUnwindSafe for Cell<A>
impl<A> Send for Cell<A> where
A: Send,
A: Send,
impl<A> Sync for Cell<A> where
A: Send,
A: Send,
impl<A> Unpin for Cell<A>
impl<A> !UnwindSafe for Cell<A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,