[][src]Struct codd::expression::Empty

pub struct Empty<T> where
    T: Tuple
{ /* fields omitted */ }

Represents an empty instance containing no tuples.

Example:

use codd::{Database, expression::Empty};

let mut db = Database::new();
let empty = Empty::<i32>::new();

assert_eq!(Vec::<i32>::new(), db.evaluate(&empty).unwrap().into_tuples());

Implementations

impl<T> Empty<T> where
    T: Tuple
[src]

pub fn new() -> Self[src]

Creates a new instance of Empty.

Trait Implementations

impl<T: Clone> Clone for Empty<T> where
    T: Tuple
[src]

impl<T: Debug> Debug for Empty<T> where
    T: Tuple
[src]

impl<T: Tuple> Default for Empty<T>[src]

impl<T> Expression<T> for Empty<T> where
    T: Tuple
[src]

impl<T: Tuple> From<Empty<T>> for Mono<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Empty<T> where
    T: RefUnwindSafe

impl<T> Send for Empty<T> where
    T: Send

impl<T> Sync for Empty<T> where
    T: Sync

impl<T> Unpin for Empty<T> where
    T: Unpin

impl<T> UnwindSafe for Empty<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T, E> IntoExpression<T, E> for E where
    E: Expression<T>,
    T: Tuple
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.