Trait Aliasable

Source
pub trait Aliasable<'a> {
    type Target;

    // Required method
    fn alias<T>(self, alias: T) -> Self::Target
       where T: Into<Cow<'a, str>>;
}
Expand description

An object that can be aliased.

Required Associated Types§

Required Methods§

Source

fn alias<T>(self, alias: T) -> Self::Target
where T: Into<Cow<'a, str>>,

Alias table for usage elsewhere in the query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> Aliasable<'a> for &'a str

Source§

type Target = Table<'a>

Source§

fn alias<T>(self, alias: T) -> Self::Target
where T: Into<Cow<'a, str>>,

Source§

impl<'a> Aliasable<'a> for (&'a str, &'a str)

Source§

type Target = Table<'a>

Source§

fn alias<T>(self, alias: T) -> Self::Target
where T: Into<Cow<'a, str>>,

Source§

impl<'a> Aliasable<'a> for (String, String)

Source§

type Target = Table<'a>

Source§

fn alias<T>(self, alias: T) -> Self::Target
where T: Into<Cow<'a, str>>,

Source§

impl<'a> Aliasable<'a> for String

Source§

type Target = Table<'a>

Source§

fn alias<T>(self, alias: T) -> Self::Target
where T: Into<Cow<'a, str>>,

Implementors§

Source§

impl<'a> Aliasable<'a> for Column<'a>

Source§

impl<'a> Aliasable<'a> for Expression<'a>

Source§

impl<'a> Aliasable<'a> for Function<'a>

Source§

impl<'a> Aliasable<'a> for Table<'a>