[−][src]Struct preserves::value::value::Annotations
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]
F: FnOnce(&mut Vec<N>),
pub fn copy_via<M: NestedValue<E>, E: Domain, F>(
&self,
f: &F
) -> Annotations<M, E> where
F: Fn(&D) -> Value<M, E>,
[src]
&self,
f: &F
) -> Annotations<M, E> where
F: Fn(&D) -> Value<M, E>,
Trait Implementations
impl<N: Clone + NestedValue<D>, D: Clone + Domain> Clone for Annotations<N, D>
[src]
fn clone(&self) -> Annotations<N, D>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<N, D> RefUnwindSafe for Annotations<N, D> where
D: RefUnwindSafe,
N: RefUnwindSafe,
D: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, D> Send for Annotations<N, D> where
D: Send,
N: Send,
D: Send,
N: Send,
impl<N, D> Sync for Annotations<N, D> where
D: Sync,
N: Sync,
D: Sync,
N: Sync,
impl<N, D> Unpin for Annotations<N, D> where
D: Unpin,
D: Unpin,
impl<N, D> UnwindSafe for Annotations<N, D> where
D: UnwindSafe,
N: UnwindSafe,
D: UnwindSafe,
N: UnwindSafe,
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>,