pub trait RowSet {
type Target;
type Item;
// Required method
fn get(&self) -> &Self::Target;
}
Available on crate feature
wiremock
only.Expand description
An opaque snapshot produced by a RowSource
This trait represents an object that provides a fixed iterable
collection on demand. In order to express the idea that a
collection is iterable, and not consumed by being iterated over,
we must describe it as having IntoIterator
implemented for
shared references. A RowSet
in contrast is owned, so that the
snapshot can be repeatedly iterated over, without being consumed
or updated, as required.