pub trait AskIterator: Iterator + Sized {
// Provided methods
fn ask<S: Serialize + ?Sized>(self, state: &S) -> AskFuture<Vec<Self::Item>> ⓘ
where Self::Item: QuestionSet { ... }
fn ask_with_receipt<S: Serialize + ?Sized>(
self,
state: &S,
) -> AskWithReceiptFuture<Vec<Self::Item>> ⓘ
where Self::Item: QuestionSet { ... }
}Expand description
The ask of an iterator of question sets.
An iterator is not a QuestionSet, so this trait asks its sets as a Vec. To put an
iterator in another set, collect it into a Vec.
Provided Methods§
Sourcefn ask<S: Serialize + ?Sized>(self, state: &S) -> AskFuture<Vec<Self::Item>> ⓘwhere
Self::Item: QuestionSet,
fn ask<S: Serialize + ?Sized>(self, state: &S) -> AskFuture<Vec<Self::Item>> ⓘwhere
Self::Item: QuestionSet,
Sourcefn ask_with_receipt<S: Serialize + ?Sized>(
self,
state: &S,
) -> AskWithReceiptFuture<Vec<Self::Item>> ⓘwhere
Self::Item: QuestionSet,
fn ask_with_receipt<S: Serialize + ?Sized>(
self,
state: &S,
) -> AskWithReceiptFuture<Vec<Self::Item>> ⓘwhere
Self::Item: QuestionSet,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".