Enum ra_ap_hir::PrefixKind [−][src]
pub enum PrefixKind { BySelf, Plain, ByCrate, }
Variants
Causes paths to always start with either self
, super
, crate
or a crate-name.
This is the same as plain, just that paths will start with self
iprepended f the path
starts with an identifier that is not a crate.
Causes paths to ignore imports in the local module.
Causes paths to start with crate
where applicable, effectively forcing paths to be absolute.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrefixKind
impl Send for PrefixKind
impl Sync for PrefixKind
impl Unpin for PrefixKind
impl UnwindSafe for PrefixKind
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> Any for T where
T: Any,