pub struct BinaryWriter<'a> { /* private fields */ }
Expand description

Write to a stream.

Implementations

Create a binary writer with the given endianness.

Write a length-prefixed String to the stream.

Write a character to the stream.

Write a bool to the stream.

Write a f32 to the stream.

Write a f64 to the stream.

Write an isize to the stream.

Write a usize to the stream.

Write a u64 to the stream.

Write an i64 to the stream.

Write a u32 to the stream.

Write an i32 to the stream.

Write a u16 to the stream.

Write an i16 to the stream.

Write a u8 to the stream.

Write an i8 to the stream.

Write a byte buffer to the stream.

Trait Implementations

Seek to a position.
Get the current position.
Get the length of the stream.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.