Struct mem_query::record::rename::Rename[][src]

pub struct Rename<I, A, B> { /* fields omitted */ }

Implementations

impl<I, A: Col, B: Col<Inner = A::Inner>> Rename<I, A, B>[src]

pub fn new(inner: I) -> Self where
    I: Clone + Record,
    I::Cols: RenameCol<A, B>,
    <I::Cols as RenameCol<A, B>>::Renamed: Header
[src]

Trait Implementations

impl<I, A, B> Clone for Rename<I, A, B> where
    I: Clone
[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a, I, A, B> ExternalRecord<'a> for Rename<I, A, B> where
    I: ExternalRecord<'a>,
    A: Col,
    B: Col<Inner = A::Inner>,
    I::Cols: RenameCol<A, B>,
    <I::Cols as RenameCol<A, B>>::Renamed: Header
[src]

fn ext_col_opt<C: Col>(&self) -> Option<&'a C>[src]

fn ext_col_ref<C: Col>(&self) -> &'a C where
    Self::Cols: HasCol<C>, 
[src]

fn erase_type(self) -> ErasedExtRecord<'a, Self::Cols>[src]

impl<I, A, B> Record for Rename<I, A, B> where
    I: Record,
    A: Col,
    B: Col<Inner = A::Inner>,
    I::Cols: RenameCol<A, B>,
    <I::Cols as RenameCol<A, B>>::Renamed: Header
[src]

type Cols = <I::Cols as RenameCol<A, B>>::Renamed

fn col_opt<C: Col>(&self) -> Option<&C>[src]

fn into_cols(self) -> Self::Cols[src]

fn clone_cols(&self) -> Self::Cols[src]

fn col_ref<C: Col>(&self) -> &C where
    Self::Cols: HasCol<C>, 
[src]

fn project<NewCols: Header>(self) -> Projection<Self, NewCols> where
    NewCols: ProjectFrom<Self::Cols>, 
[src]

fn project_into<R: FromRecord<Self::Cols>>(self) -> R[src]

fn rename_col<A: Col, B: Col<Inner = A>>(self) -> Rename<Self, A, B> where
    Rename<Self, A, B>: Record
[src]

impl<I, A, B> Copy for Rename<I, A, B> where
    I: Copy
[src]

Auto Trait Implementations

impl<I, A, B> RefUnwindSafe for Rename<I, A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    I: RefUnwindSafe

impl<I, A, B> Send for Rename<I, A, B> where
    A: Send,
    B: Send,
    I: Send

impl<I, A, B> Sync for Rename<I, A, B> where
    A: Sync,
    B: Sync,
    I: Sync

impl<I, A, B> Unpin for Rename<I, A, B> where
    A: Unpin,
    B: Unpin,
    I: Unpin

impl<I, A, B> UnwindSafe for Rename<I, A, B> where
    A: UnwindSafe,
    B: UnwindSafe,
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<R> BorrowRecord for R where
    R: Record + ?Sized
[src]

type Cols = <R as Record>::Cols

type Inner = R

pub fn borrow_rec(&Self) -> &<R as BorrowRecord>::Inner[src]

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> Everything for T where
    T: ?Sized
[src]