[−][src]Struct tiff_encoder::write::EndianFile
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]
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]
pub fn write_u32(&mut self, n: u32) -> Result<()>
[src]
pub fn write_i8(&mut self, n: i8) -> Result<()>
[src]
pub fn write_i16(&mut self, n: i16) -> Result<()>
[src]
pub fn write_i32(&mut self, n: i32) -> Result<()>
[src]
pub fn write_f32(&mut self, n: f32) -> Result<()>
[src]
pub fn write_f64(&mut self, n: f64) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl Send for EndianFile
impl Sync for EndianFile
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,