Trait mem_query::header::ProjectRefFrom[][src]

pub trait ProjectRefFrom<'a, Other>: Header {
    type AsRef: Record<Cols = Self> + 'a;
    fn ref_from(rec: impl ExternalRecord<'a, Cols = Other>) -> Self::AsRef;
}
Expand description

The reference version of ProjectFrom

Instead of consuming other, it produces a list of column references

Associated Types

type AsRef: Record<Cols = Self> + 'a[src]

Required methods

fn ref_from(rec: impl ExternalRecord<'a, Cols = Other>) -> Self::AsRef[src]

Implementations on Foreign Types

impl<'a, Other: Header> ProjectRefFrom<'a, Other> for HNil[src]

type AsRef = HNil

fn ref_from(_: impl ExternalRecord<'a, Cols = Other>) -> Self::AsRef[src]

impl<'a, Other: Header + HasCol<H>, H: Col, T: ProjectRefFrom<'a, Other>> ProjectRefFrom<'a, Other> for HCons<H, T> where
    Self: Header
[src]

type AsRef = HCons<&'a H, T::AsRef>

fn ref_from(rec: impl ExternalRecord<'a, Cols = Other>) -> Self::AsRef[src]

Implementors