ExecSpecSeqUpdate

Trait ExecSpecSeqUpdate 

Source
pub trait ExecSpecSeqUpdate<'a, Out: Sized + DeepView>:
    Sized
    + DeepView
    + ToOwned<Out> {
    type Elem: DeepView + DeepViewClone;

    // Required method
    exec fn exec_update(self, i: usize, a: Self::Elem) -> Out;
}
Expand description

Spec for executable version of Seq::update.

Required Associated Types§

Required Methods§

Source

exec fn exec_update(self, i: usize, a: Self::Elem) -> Out

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, T: DeepView + DeepViewClone> ExecSpecSeqUpdate<'a, Vec<T>> for &'a [T]

Source§

exec fn exec_update(self, i: usize, a: Self::Elem) -> res : Vec<T>

ensures
res.deep_view() =~= self.deep_view().update(i as int, a.deep_view()),
Source§

type Elem = T

Implementors§