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§
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
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.