Skip to main content

spec_slice_starts_with

Function spec_slice_starts_with 

Source
pub open spec fn spec_slice_starts_with<T: PartialEq>(slice: &[T], needle: &[T]) -> bool
Expand description
{
    &&& needle@.len() <= slice@.len()
    &&& forall |i: int| {
        0 <= i < needle@.len()
            ==> <T as super::cmp::PartialEqSpec<T>>::eq_spec(&slice@[i], &needle@[i])
    }

}