Trait creusot_contracts::std::slice::SliceExt

source ·
pub trait SliceExt<T> {
    // Required methods
    fn to_mut_seq(&mut self) -> Seq<&mut T>;
    fn to_ref_seq(&self) -> Seq<&T>;
}

Required Methods§

source

fn to_mut_seq(&mut self) -> Seq<&mut T>

logic

source

fn to_ref_seq(&self) -> Seq<&T>

logic

Implementations on Foreign Types§

source§

impl<T> SliceExt<T> for [T]

source§

fn to_mut_seq(&mut self) -> Seq<&mut T>

logic

ensures

result.len() == self@.len()

ensures

forall<i : _> 0 <= i && i < result.len() ==> result[i] == &mut self[i]

source§

fn to_ref_seq(&self) -> Seq<&T>

logic

ensures

result.len() == self@.len()

ensures

forall<i : _> 0 <= i && i < result.len() ==> result[i] == &self[i]

Implementors§