pub struct InOut<'a, T: ?Sized, U> { /* private fields */ }
Expand description

Allocated inout.

Implementations

Contructs a new InOut.

Safety

Callers must ensure that the passed reference and value have the same size.

Returns the byte offset within block.

Returns the number of allocated elements of type T.

Attempts to allocate inout segment to fit val in the block and returns the resulting InOut on success.

Attempts to allocate inout segment to fit val.len() elements of val in the block and returns the resulting InOut on success.

Attempts to allocate inout segment to fit as many elements of val in the block as capacity allows and returns the resulting InOut on success.

Trait Implementations

Converts to this type from the input type.

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.