pub struct In<P, R: Region> { /* private fields */ }
Expand description

A pointer which has its pointee in a specific memory region.

Implementations

Creates a new In from a pointer.

Creates a new In from a pointer.

Safety

The pointee of ptr must be contained in R.

Maps this In to another pointer in its region.

Maps this In to another pointer in its region.

Safety

The pointer returned by f must be completely contained in R.

Gets a raw In from this pointer.

Unwraps an In, returning the underlying pointer.

Returns a reference to the pointer of this In.

Returns a mutable reference to the pointer of this In.

Safety

The pointer must not be mutated to point outside of R.

Returns a Slot of the internal contents.

Gets a mutable borrow from this slot.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
The underlying type that is destructured.
The type of destructuring to perform.
Returns a mutable pointer to the underlying type.
The restructured version of this type.
Restructures a pointer to this type into the target type. Read more

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 for metadata in pointers and references to Self.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.