Struct rustc_serialize::opaque::FileEncoder[][src]

pub struct FileEncoder {
    buf: Box<[MaybeUninit<u8>]>,
    buffered: usize,
    flushed: usize,
    file: File,


buf: Box<[MaybeUninit<u8>]>buffered: usizeflushed: usizefile: File


impl FileEncoder[src]

pub fn new<P: AsRef<Path>>(path: P) -> Result<Self>[src]

pub fn with_capacity<P: AsRef<Path>>(path: P, capacity: usize) -> Result<Self>[src]

pub fn position(&self) -> usize[src]

pub fn emit_raw_bytes(&mut self, s: &[u8]) -> FileEncodeResult[src]

pub fn flush(&mut self) -> FileEncodeResult[src]

fn capacity(&self) -> usize[src]

fn write_one(&mut self, value: u8) -> FileEncodeResult[src]

fn write_all(&mut self, buf: &[u8]) -> FileEncodeResult[src]

fn write_all_unbuffered(&mut self, buf: &[u8]) -> FileEncodeResult[src]

Trait Implementations

impl Drop for FileEncoder[src]

impl Encodable<FileEncoder> for [u8][src]

impl Encoder for FileEncoder[src]

type Error = Error

Auto Trait Implementations

impl RefUnwindSafe for FileEncoder

impl Send for FileEncoder

impl Sync for FileEncoder

impl Unpin for FileEncoder

impl UnwindSafe for FileEncoder

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.