ExecSpecSeqAdd

Trait ExecSpecSeqAdd 

Source
pub trait ExecSpecSeqAdd<'a, Out: Sized + DeepView>:
    Sized
    + DeepView
    + ToOwned<Out> {
    // Required method
    exec fn exec_add(self, rhs: Self) -> Out;
}
Expand description

Spec for executable version of Seq::add.

Required Methods§

Source

exec fn exec_add(self, rhs: Self) -> 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> ExecSpecSeqAdd<'a, Vec<T>> for &'a [T]

Source§

exec fn exec_add(self, rhs: Self) -> res : Vec<T>

ensures
res.deep_view() =~= self.deep_view().add(rhs.deep_view()),

Implementors§