Struct partial_ref::Field

source ·
pub struct Field<FieldType: ?Sized>(_);
Expand description

Type of a part that corresponds to a struct field.

Partial references containing a part of this type provide access to that field.

Trait Implementations

Type that can be produced from a constant pointer to a reference target.
Type that can be produced from a mutable pointer to a reference target.

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.

Given a constant pointer to a target, produce a constant pointer to a part of it.
Given a mutable pointer to a target, produce a mutable pointer to a part of it.

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.