Enum ra_ap_hir_ty::display::DisplayTarget[][src]

pub enum DisplayTarget {
    Diagnostics,
    SourceCode {
        module_id: ModuleId,
    },
    Test,
}

Variants

Diagnostics

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.

SourceCode

Display types for inserting them in source files. The generated code should compile, so paths need to be qualified.

Fields of SourceCode

module_id: ModuleId
Test

Only for test purpose to keep real types

Trait Implementations

impl Clone for DisplayTarget[src]

impl Copy for DisplayTarget[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.