Struct flac_bound::WriteWrapper
source · [−]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
impl<'out> !RefUnwindSafe for WriteWrapper<'out>
impl<'out> !Send for WriteWrapper<'out>
impl<'out> !Sync for WriteWrapper<'out>
impl<'out> Unpin for WriteWrapper<'out>
impl<'out> !UnwindSafe for WriteWrapper<'out>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more