WritableSeq

Trait WritableSeq 

Source
pub trait WritableSeq<O: Output> {
    // Required method
    async fn for_each<S>(&self, sink: &mut S) -> Result<(), O::Error>
       where S: SequenceAccept<O>;
}
Expand description

A sequence of writable types. Sequences are modeled in the library by this interface, so that different separators can implement SequenceAccept.

Required Methods§

Source

async fn for_each<S>(&self, sink: &mut S) -> Result<(), O::Error>
where S: SequenceAccept<O>,

Writes each writable value in the sequence

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'w, W, O> WritableSeq<O> for &'w W
where O: Output, W: WritableSeq<O>,

Source§

async fn for_each<S>(&self, sink: &mut S) -> Result<(), O::Error>
where S: SequenceAccept<O>,

Implementors§

Source§

impl<'t, T, Config, O> WritableSeq<O> for SequenceViaConfig<'t, T, Config>
where O: Output, Config: SequenceConfig<T, O>,

Source§

impl<O> WritableSeq<O> for NoOpSeq
where O: Output,

Source§

impl<O> WritableSeq<O> for StrArrSeq<'_>
where O: Output,

Source§

impl<O, S1, S2> WritableSeq<O> for CombinedSeq<S1, S2>
where O: Output, S1: WritableSeq<O>, S2: WritableSeq<O>,

Source§

impl<O, W> WritableSeq<O> for ArrSeq<'_, W>
where O: Output, W: Writable<O>,

Source§

impl<O, W> WritableSeq<O> for BoxedIndirection<W>
where O: Output, W: WritableSeq<O>,

Source§

impl<O, W> WritableSeq<O> for RepeatSeq<W>
where O: Output, W: Writable<O>,

Source§

impl<O, W> WritableSeq<O> for SingularSeq<W>
where O: Output, W: Writable<O>,