pub struct FixedBytes<const N: usize> { /* private fields */ }
Expand description

A fixed-size bytes storage which keeps track of how much has been initialized.

Implementations

Construct a new fixed bytes array storage.

Coerce into the underlying bytes if all of them have been initialized.

Coerce into the slice of initialized memory which is present.

Trait Implementations

The error type raised by the writer.

Write bytes to the current writer.

Write a single byte.

Write an array to the current writer.

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.