PartialBorrow

Trait PartialBorrow 

Source
pub trait PartialBorrow {
    type All_Mut;
    type All_Const;
    type All_No;
    type Fields;

    const FIELDS: Self::Fields;
}
Expand description

Helper trait (types that can be partially borrowed).

This is used by the partial!() macro, to construct type expressions that name particular borrowing sets. You probably don’t want to use this trait directly.

This trait will be derived. You probably don’t want to implement it.

Required Associated Constants§

Source

const FIELDS: Self::Fields

Field index lookup table: values are usize indices, the field numbers.

Required Associated Types§

Source

type All_Mut

Self as a Partial, but with all fields Mut

Source

type All_Const

Self as a Partial, with all fields Const

Source

type All_No

Self as a Partial, with all fields No

Source

type Fields

Field index lookup type: field names are those of the original struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§