pub trait PathHelpers {
// Required methods
fn new() -> Self;
fn to_type(self) -> Type;
fn from_ident<I: IntoIdent>(origin: I) -> Self;
fn from_idents<I: IntoIdents>(origin: I) -> Self;
fn push_segment<S: IntoSegment>(&mut self, segment: S) -> &mut Self;
fn modify_segment_at<F: FnOnce(&mut PathSegment)>(
&mut self,
index: usize,
modify: F,
) -> &mut Self;
// Provided methods
fn push_arg(&mut self, index: usize, typ: Type) -> &mut Self { ... }
fn push_ident_arg(&mut self, index: usize, ident: Ident) -> &mut Self { ... }
}
Required Methods§
fn new() -> Self
fn to_type(self) -> Type
fn from_ident<I: IntoIdent>(origin: I) -> Self
fn from_idents<I: IntoIdents>(origin: I) -> Self
fn push_segment<S: IntoSegment>(&mut self, segment: S) -> &mut Self
fn modify_segment_at<F: FnOnce(&mut PathSegment)>( &mut self, index: usize, modify: F, ) -> &mut Self
Provided Methods§
fn push_arg(&mut self, index: usize, typ: Type) -> &mut Self
fn push_ident_arg(&mut self, index: usize, ident: Ident) -> &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.