pub struct WriteWrapper<'out>(pub &'out mut dyn Write);
Expand description

This wrapper is necessary due to fat pointers.

Examples

let mut outf = File::create("ЦшЦ.flac").unwrap();
let mut outw = WriteWrapper(&mut outf);
let mut outs = FlacEncoder::new().unwrap().init_write(&mut outw).unwrap();

outs.process_interleaved(&[0xA1, 0xF3], 1).unwrap();

Tuple Fields

0: &'out mut dyn Write

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.