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§
sourcefn to_mut_seq(&mut self) -> Seq<&mut T>
fn to_mut_seq(&mut self) -> Seq<&mut T>
logic
sourcefn to_ref_seq(&self) -> Seq<&T>
fn to_ref_seq(&self) -> Seq<&T>
logic
Implementations on Foreign Types§
source§impl<T> SliceExt<T> for [T]
impl<T> SliceExt<T> for [T]
source§fn to_mut_seq(&mut self) -> Seq<&mut T>
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>
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]