Enum ra_ap_hir_ty::display::DisplayTarget [−][src]
pub enum DisplayTarget { Diagnostics, SourceCode { module_id: ModuleId, }, Test, }
Variants
Display types for inlays, doc popups, autocompletion, etc…
Showing {unknown}
or not qualifying paths is fine here.
There’s no reason for this to fail.
Display types for inserting them in source files. The generated code should compile, so paths need to be qualified.
Show fields
Fields of SourceCode
module_id: ModuleId
Only for test purpose to keep real types
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DisplayTarget
impl Send for DisplayTarget
impl Sync for DisplayTarget
impl Unpin for DisplayTarget
impl UnwindSafe for DisplayTarget
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
.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> Any for T where
T: Any,