pub type FileEncodeResult = Result<usize, Error>;

Aliased Type§

enum FileEncodeResult {
    Ok(usize),
    Err(Error),
}

Variants§

§1.0.0

Ok(usize)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

source§

impl<D: Decoder, T1: Decodable<D>, T2: Decodable<D>> Decodable<D> for Result<T1, T2>

source§

fn decode(d: &mut D) -> Result<T1, T2>

source§

impl<S: Encoder, T1: Encodable<S>, T2: Encodable<S>> Encodable<S> for Result<T1, T2>

source§

fn encode(&self, s: &mut S)

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes

Size for each variant:

  • Ok: 8 bytes
  • Err: 8 bytes