pub trait IntoPartialRef<'a> {
    type Ref: PartialRef<'a>;

    fn into_partial_ref(self) -> Self::Ref;
}
Expand description

Construction of partial references.

See also IntoPartialRefMut.

This trait gets an automatic implementation for references (mutable or immutable) to any type that has a derive statement for PartialRefTarget. Usually there is no need to implement this trait manually.

Required Associated Types

Required Methods

Convert a mutable or immutable reference into a partial reference.

Implementors