[][src]Struct sodium_rust::Cell

pub struct Cell<A> {
    pub impl_: CellImpl<A>,
}

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]

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]

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]

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]

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]

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]

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]

pub fn listen<K: IsLambda1<A, ()> + Send + Sync + 'static>(
    &self,
    k: K
) -> Listener
[src]

Trait Implementations

impl<A> Clone for Cell<A>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Cell<A>

impl<A> Send for Cell<A> where
    A: Send

impl<A> Sync for Cell<A> where
    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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.