Trait MaybeQualifiedOnce

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

A name that can be unqualified (foo) or qualified once (foo.bar).

This is mostly a “private” helper trait to provide reusable conversions.

Required Methods§

Source

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

Represent a maybe-qualified name as a (foo?, bar) tuple.

Implementations on Foreign Types§

Source§

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

With a qualification (foo.bar).

Implementors§

Source§

impl<T> MaybeQualifiedOnce for T
where T: IntoIden,

Only the “base”, no qualification (foo).