[][src]Struct preserves::value::value::Annotations

pub struct Annotations<N: NestedValue<D>, D: Domain>(_, _);

Implementations

impl<N: NestedValue<D>, D: Domain> Annotations<N, D>[src]

pub fn empty() -> Self[src]

pub fn new(anns: Option<Vec<N>>) -> Self[src]

pub fn maybe_slice(&self) -> Option<&[N]>[src]

pub fn slice(&self) -> &[N][src]

pub fn modify<F>(&mut self, f: F) -> &mut Self where
    F: FnOnce(&mut Vec<N>), 
[src]

pub fn copy_via<M: NestedValue<E>, E: Domain, F>(
    &self,
    f: &F
) -> Annotations<M, E> where
    F: Fn(&D) -> Value<M, E>, 
[src]

Trait Implementations

impl<N: Clone + NestedValue<D>, D: Clone + Domain> Clone for Annotations<N, D>[src]

Auto Trait Implementations

impl<N, D> RefUnwindSafe for Annotations<N, D> where
    D: RefUnwindSafe,
    N: RefUnwindSafe

impl<N, D> Send for Annotations<N, D> where
    D: Send,
    N: Send

impl<N, D> Sync for Annotations<N, D> where
    D: Sync,
    N: Sync

impl<N, D> Unpin for Annotations<N, D> where
    D: Unpin

impl<N, D> UnwindSafe for Annotations<N, D> where
    D: UnwindSafe,
    N: UnwindSafe

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.