trait Segment: Debug {
// Required methods
fn record_segment_res(
resolver: &mut CrateResolver<'_, '_>,
segment: &Self,
res: Res,
);
fn ident(&self) -> Ident;
}
Expand description
Abstraction over surface::PathSegment
and surface::ExprPathSegment
Required Methods§
fn record_segment_res( resolver: &mut CrateResolver<'_, '_>, segment: &Self, res: Res, )
fn ident(&self) -> Ident
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.