Trait mem_query::header::ProjectFrom[][src]

pub trait ProjectFrom<Other>: Header + ProjectAnyRefFrom<Other> {
    type Remainder: Header;
    fn project_from(other: Other) -> (Self, Self::Remainder);
}
Expand description

A header that can be created by extracting values from Other

Associated Types

type Remainder: Header[src]

The remaining columns in Other after extracting the projection

Required methods

fn project_from(other: Other) -> (Self, Self::Remainder)[src]

Construct Self by extracting values from other.

Implementations on Foreign Types

impl<Other: Header> ProjectFrom<Other> for HNil[src]

type Remainder = Other

fn project_from(other: Other) -> (HNil, Other)[src]

impl<Other: Header, T: ProjectFrom<Other>, H: Col> ProjectFrom<Other> for HCons<H, T> where
    T::Remainder: HasCol<H> + Take<<T::Remainder as HasCol<H>>::Index, Taken = H>,
    Self: Header + for<'a> ProjectRefFrom<'a, Other>,
    <T::Remainder as Take<<T::Remainder as HasCol<H>>::Index>>::Remainder: Header
[src]

type Remainder = <T::Remainder as Take<<T::Remainder as HasCol<H>>::Index>>::Remainder

fn project_from(other: Other) -> (Self, Self::Remainder)[src]

Implementors