Trait mem_query::col::ColProxy[][src]

pub trait ColProxy {
    type For: Col;
    fn into_col(self) -> Self::For;
fn col_ref(&self) -> &Self::For; }
Expand description

A value that stands in for a column

This trait should be implemented for smart pointers to columns, in addition to the columns themselves. This trait is often used as a bound where you might ordinarily expect to see a column reference so that the column value itself can be used in place of the reference.

Associated Types

type For: Col[src]

Which column does this proxy represent?

Required methods

fn into_col(self) -> Self::For[src]

Consume the proxy and produce an owned version of the column data. This will often involve clone()ing the column value.

fn col_ref(&self) -> &Self::For[src]

Get a reference to the column value without consuming the pointer.

Implementations on Foreign Types

impl<C: Col> ColProxy for &C[src]

type For = C

fn into_col(self) -> Self::For[src]

fn col_ref(&self) -> &Self::For[src]

impl<C: Col> ColProxy for Box<C>[src]

type For = C

fn into_col(self) -> Self::For[src]

fn col_ref(&self) -> &Self::For[src]

impl<C: Col> ColProxy for Rc<C>[src]

type For = C

fn into_col(self) -> Self::For[src]

fn col_ref(&self) -> &Self::For[src]

impl<C: Col> ColProxy for Arc<C>[src]

type For = C

fn into_col(self) -> Self::For[src]

fn col_ref(&self) -> &Self::For[src]

Implementors