[][src]Struct chunky::Value

pub struct Value<V> { /* fields omitted */ }

A single value stored in a chunk

Methods

impl<V> Value<V>[src]

pub fn load_or_default(
    ident: Ident,
    default: V,
    storage: Rc<dyn ChunkStorage>
) -> Value<V>
[src]

Load the value in the chunk with the given identifier, or create it using a default value

Trait Implementations

impl<V> Drop for Value<V>[src]

impl<V> DerefMut for Value<V>[src]

impl<V> Deref for Value<V>[src]

type Target = V

The resulting type after dereferencing.

Auto Trait Implementations

impl<V> !Sync for Value<V>

impl<V> !Send for Value<V>

impl<V> Unpin for Value<V> where
    V: Unpin

impl<V> !RefUnwindSafe for Value<V>

impl<V> !UnwindSafe for Value<V>

Blanket Implementations

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]