Skip to main content

MaybeQualifiedTwice

Trait MaybeQualifiedTwice 

Source
pub trait MaybeQualifiedTwice {
    // Required method
    fn into_3_parts(self) -> (Option<(Option<DynIden>, DynIden)>, DynIden);
}
Expand description

A name with up to two qualifiers: name, inner.name or outer.inner.name.

Its implementations exist to give the name types their From conversions.

Required Methods§

Source

fn into_3_parts(self) -> (Option<(Option<DynIden>, DynIden)>, DynIden)

Splits the name into ((outer, inner), name); nesting the qualifiers this way leaves no room for an outer one without an inner one.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S, T, U> MaybeQualifiedTwice for (S, T, U)
where S: IntoIden, T: IntoIden, U: IntoIden,

A triple: outer.inner.name.

Implementors§

Source§

impl<T> MaybeQualifiedTwice for T

A bare identifier or a pair, whose qualifier is the inner one.