[][src]Struct cope::instance::Atom

pub struct Atom<T> { /* fields omitted */ }

Implementations

impl<T: 'static> Atom<T>[src]

pub fn new(engine: Arc<Engine>, initial_value: T) -> Self[src]

#[must_use]pub fn get(&self) -> Ref<'_, T>[src]

#[must_use]pub fn get_mut(&self) -> AtomMut<'_, T>[src]

#[must_use]pub fn sample_mut(&self) -> RefMut<'_, T>[src]

pub fn set(&self, value: T)[src]

Trait Implementations

impl<T> Clone for Atom<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Atom<T>

impl<T> !Send for Atom<T>

impl<T> !Sync for Atom<T>

impl<T> Unpin for Atom<T>

impl<T> !UnwindSafe for Atom<T>

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.