Skip to main content

axiom_smallvec_index_req

Function axiom_smallvec_index_req 

Source
pub broadcast proof fn axiom_smallvec_index_req<A: Array>(v: &SmallVec<A>, index: usize)
Expand description
requires
obeys_smallvec_array::<A>(),
ensures
<SmallVec<A> as vstd::std_specs::core::IndexSpec<usize>>::index_req(v, &index)
    == (index < smallvec_view(v).len()),

SmallVec’s single-position indexing precondition is the slice bounds check.