Trait PathMod

Source
pub trait PathMod {
    // Required methods
    fn new() -> Self;
    fn from_idents(idents: impl Iterator<Item = Ident>) -> Self;
    fn push(&mut self, type_name_seg: &Ident) -> &mut Self;
    fn push_ident(&mut self, type_name_seg: Ident) -> &mut Self;
    fn push_import_with_scope(
        &mut self,
        import: &Import,
        package: Option<&Ident>,
    ) -> &mut Self;
    fn push_type_path<'a>(
        &mut self,
        iter: &mut impl Iterator<Item = &'a Ident>,
        tailing: bool,
    ) -> &mut Self;
    fn push_type_vec(&mut self, name: &Vec<Ident>, tailing: bool) -> &mut Self;
}

Required Methods§

Source

fn new() -> Self

Source

fn from_idents(idents: impl Iterator<Item = Ident>) -> Self

Source

fn push(&mut self, type_name_seg: &Ident) -> &mut Self

Source

fn push_ident(&mut self, type_name_seg: Ident) -> &mut Self

Source

fn push_import_with_scope( &mut self, import: &Import, package: Option<&Ident>, ) -> &mut Self

Source

fn push_type_path<'a>( &mut self, iter: &mut impl Iterator<Item = &'a Ident>, tailing: bool, ) -> &mut Self

Source

fn push_type_vec(&mut self, name: &Vec<Ident>, tailing: bool) -> &mut Self

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 PathMod for Type

Source§

fn new() -> Self

Source§

fn from_idents(idents: impl Iterator<Item = Ident>) -> Self

Source§

fn push(&mut self, type_name_seg: &Ident) -> &mut Self

Source§

fn push_ident(&mut self, type_name_seg: Ident) -> &mut Self

Source§

fn push_import_with_scope( &mut self, import: &Import, package: Option<&Ident>, ) -> &mut Self

Source§

fn push_type_path<'a>( &mut self, iter: &mut impl Iterator<Item = &'a Ident>, tailing: bool, ) -> &mut Self

Source§

fn push_type_vec(&mut self, name: &Vec<Ident>, tailing: bool) -> &mut Self

Source§

impl PathMod for Path

Source§

fn new() -> Self

Source§

fn from_idents(idents: impl Iterator<Item = Ident>) -> Self

Source§

fn push_ident(&mut self, type_name_seg: Ident) -> &mut Self

Source§

fn push(&mut self, type_name_seg: &Ident) -> &mut Self

Source§

fn push_import_with_scope( &mut self, import: &Import, package: Option<&Ident>, ) -> &mut Self

Source§

fn push_type_path<'a>( &mut self, iter: &mut impl Iterator<Item = &'a Ident>, tailing: bool, ) -> &mut Self

Source§

fn push_type_vec(&mut self, name: &Vec<Ident>, tailing: bool) -> &mut Self

Implementors§