Struct partial_ref::Field [−][src]
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 Ptr = *const FieldType
type Ptr = *const FieldType
Type that can be produced from a constant pointer to a reference target.
type PtrMut = *mut FieldType
type PtrMut = *mut FieldType
Type that can be produced from a mutable pointer to a reference target.
Auto Trait Implementations
impl<FieldType: ?Sized> RefUnwindSafe for Field<FieldType> where
FieldType: RefUnwindSafe,
impl<FieldType: ?Sized> UnwindSafe for Field<FieldType> where
FieldType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Given a constant pointer to a target, produce a constant pointer to a part of it. Read more
pub unsafe fn part_ptr_mut(
*mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut
pub unsafe fn part_ptr_mut(
*mut <Reference as PartialRefTarget>::RawTarget
) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it. Read more