pub struct OutRef<'a, T> { /* private fields */ }
Expand description

A write-only reference of T.

Implementations

Forms an OutRef<'a, T>.

Safety

Behavior is undefined if any of the following conditions are violated:

  • data must be valid for writes.

  • data must be properly aligned.

Forms an OutBuf from an initialized value.

Forms an OutBuf from an uninitialized value.

Returns an unsafe mutable pointer to the value.

Sets the value of the OutRef.

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.