IntoStringIter

Struct IntoStringIter 

Source
pub struct IntoStringIter<'f, Ctx, Seq>(/* private fields */);
Expand description

Turns a WritableSeq into an iterator over owned strings. This calls InMemoryOutput::print_output for each writable produced by the sequence. It uses Rust’s async design in order to produce lazy iteration.

Iteration will panic if any writable returns a pending future (in particular, this may happen if a writable introduces its own async computations that do not come from the output)

Implementations§

Source§

impl<'f, Ctx, Seq> IntoStringIter<'f, Ctx, Seq>

Source

pub fn new(context: Ctx, sequence: Seq) -> Self

Trait Implementations§

Source§

impl<'f, Ctx, Seq> IntoIterator for IntoStringIter<'f, Ctx, Seq>
where Ctx: Context + 'f, Seq: WritableSeq<InMemoryOutput<Ctx>> + 'f,

Source§

type Item = String

The type of the elements being iterated over.
Source§

type IntoIter = ToStringIter<'f, Ctx, Seq>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<'f, Ctx, Seq> Freeze for IntoStringIter<'f, Ctx, Seq>
where Ctx: Freeze, Seq: Freeze,

§

impl<'f, Ctx, Seq> RefUnwindSafe for IntoStringIter<'f, Ctx, Seq>
where Ctx: RefUnwindSafe, Seq: RefUnwindSafe,

§

impl<'f, Ctx, Seq> Send for IntoStringIter<'f, Ctx, Seq>
where Ctx: Send, Seq: Send,

§

impl<'f, Ctx, Seq> Sync for IntoStringIter<'f, Ctx, Seq>
where Ctx: Sync, Seq: Sync,

§

impl<'f, Ctx, Seq> Unpin for IntoStringIter<'f, Ctx, Seq>
where Ctx: Unpin, Seq: Unpin,

§

impl<'f, Ctx, Seq> UnwindSafe for IntoStringIter<'f, Ctx, Seq>
where Ctx: UnwindSafe, Seq: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.