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

Allocated input.

Implementations

Contructs a new Input.

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 input segment to fit val in the block and returns the resulting Input on success.

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

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

Trait Implementations

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.