[][src]Struct conllu::io::PartitioningWriter

pub struct PartitioningWriter<W> where
    W: WriteSentence
{ /* fields omitted */ }

A writer for CoNLL-U sentences that partitions incoming objects among multiple writers.

For example, suppose that a PartitioningWriter is wraps writers w1, w2, and sentences s[1-5] are written. The sentences are then written as follows:

  • s1 -> w1
  • s2 -> w2
  • s3 -> w1
  • s4 -> w2
  • s5 -> w1

Methods

impl<W> PartitioningWriter<W> where
    W: WriteSentence
[src]

pub fn new(writers: Vec<W>) -> PartitioningWriter<W>[src]

Trait Implementations

impl<W> WriteSentence for PartitioningWriter<W> where
    W: WriteSentence
[src]

Auto Trait Implementations

impl<W> RefUnwindSafe for PartitioningWriter<W> where
    W: RefUnwindSafe

impl<W> Send for PartitioningWriter<W> where
    W: Send

impl<W> Sync for PartitioningWriter<W> where
    W: Sync

impl<W> Unpin for PartitioningWriter<W> where
    W: Unpin

impl<W> UnwindSafe for PartitioningWriter<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.