Skip to main content

IntoIdent

Trait IntoIdent 

Source
pub trait IntoIdent {
    // Required method
    fn into_ident_parts(self) -> Vec<Cow<'static, str>>;
}
Expand description

The parts of a qualified identifier: "age", or ("users", "id").

One entry point covers both, so a caller never has to decide between a singular and a plural helper. Empty parts are dropped by Expr::ident, which lets an unset table qualifier be passed straight through.

Required Methods§

Source

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Perform the conversion.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoIdent for &'static str

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl IntoIdent for Cow<'static, str>

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl IntoIdent for String

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl<A, B, C, D> IntoIdent for (A, B, C, D)
where A: Into<Cow<'static, str>>, B: Into<Cow<'static, str>>, C: Into<Cow<'static, str>>, D: Into<Cow<'static, str>>,

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl<A, B, C> IntoIdent for (A, B, C)
where A: Into<Cow<'static, str>>, B: Into<Cow<'static, str>>, C: Into<Cow<'static, str>>,

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl<A, B> IntoIdent for (A, B)
where A: Into<Cow<'static, str>>, B: Into<Cow<'static, str>>,

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl<A> IntoIdent for (A,)
where A: Into<Cow<'static, str>>,

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl<T, const N: usize> IntoIdent for [T; N]
where T: Into<Cow<'static, str>>,

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Source§

impl<T> IntoIdent for Vec<T>
where T: Into<Cow<'static, str>>,

Source§

fn into_ident_parts(self) -> Vec<Cow<'static, str>>

Implementors§