ExecSpecSeqPush

Trait ExecSpecSeqPush 

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

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

Spec for executable version of Seq::push.

Required Associated Types§

Required Methods§

Source

exec fn exec_push(self, 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> ExecSpecSeqPush<'a, Vec<T>> for &'a [T]

Source§

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

ensures
res.deep_view() =~= self.deep_view().push(a.deep_view()),
Source§

type Elem = T

Implementors§