Skip to main content

Aliasable

Trait Aliasable 

Source
pub trait Aliasable<'a> {
    // Required method
    fn alias<T>(self, alias: T) -> Table<'a>
       where T: Into<Cow<'a, str>>;
}
Expand description

An object that can be aliased.

Required Methods§

Source

fn alias<T>(self, alias: T) -> Table<'a>
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".

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§

Source§

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