[][src]Struct tiff_encoder::write::EndianFile

pub struct EndianFile { /* fields omitted */ }

Helper structure that provides convenience methods to write to a fs::File, being aware of the file's Endianness.

Methods

impl EndianFile[src]

pub fn write_u8(&mut self, n: u8) -> Result<()>[src]

Writes a u8 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_all_u8(&mut self, bytes: &[u8]) -> Result<()>[src]

Writes a slice of bytes to a file.

This is much more efficient than calling [write_u8] in a loop if you have list of bytes to write.

Errors

This method returns the same errors as Write::write_all.

pub fn write_u16(&mut self, n: u16) -> Result<()>[src]

Writes a u16 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_u32(&mut self, n: u32) -> Result<()>[src]

Writes a u32 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_i8(&mut self, n: i8) -> Result<()>[src]

Writes a i8 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_i16(&mut self, n: i16) -> Result<()>[src]

Writes a i16 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_i32(&mut self, n: i32) -> Result<()>[src]

Writes a i32 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_f32(&mut self, n: f32) -> Result<()>[src]

Writes a f32 to the file.

Errors

This method returns the same errors as Write::write_all.

pub fn write_f64(&mut self, n: f64) -> Result<()>[src]

Writes a f64 to the file.

Errors

This method returns the same errors as Write::write_all.

Trait Implementations

impl Into<File> for EndianFile[src]

Auto Trait Implementations

impl Send for EndianFile

impl Sync for EndianFile

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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