[][src]Struct rls_data::ExternalCrateData

pub struct ExternalCrateData {
    pub file_name: String,
    pub num: u32,
    pub id: GlobalCrateId,
}

Data for external crates in the prelude of a crate.

Fields

file_name: String

Source file where the external crate is declared.

num: u32

A crate-local crate index of an external crate. Local crate index is always 0, so these should start from 1 and range should be contiguous, e.g. from 1 to n for n external crates.

id: GlobalCrateId

Trait Implementations

impl Clone for ExternalCrateData[src]

impl Debug for ExternalCrateData[src]

impl<'de> Deserialize<'de> for ExternalCrateData[src]

impl Serialize for ExternalCrateData[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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.