pub trait Sequence {
type Item;
// Required method
fn sequence_items(&self) -> Vec<&Self::Item>;
}Expand description
An ordered run of items a collection matcher can inspect.
Implemented for [T], [T; N], Vec<T>, VecDeque<T>, BTreeSet<T>,
HashSet<T>, and &S for any Sequence S. Items are borrowed, not
cloned. A lazy iterator is not a Sequence (it cannot be inspected through
a shared borrow); collect it into a Vec first.
Required Associated Types§
Required Methods§
Sourcefn sequence_items(&self) -> Vec<&Self::Item>
fn sequence_items(&self) -> Vec<&Self::Item>
Borrows every item, in order.