[][src]Trait partial_ref::IntoPartialRef

pub trait IntoPartialRef<'a> {
    type Ref: PartialRef<'a>;
    fn into_partial_ref(self) -> Self::Ref;
}

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.

Associated Types

type Ref: PartialRef<'a>

Loading content...

Required methods

fn into_partial_ref(self) -> Self::Ref

Convert a mutable or immutable reference into a partial reference.

Loading content...

Implementors

Loading content...