Struct rls_data::ExternalCrateData [−][src]
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 Decodable for ExternalCrateData
[src]
impl Decodable for ExternalCrateData
fn decode<__D: Decoder>(d: &mut __D) -> Result<ExternalCrateData, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<ExternalCrateData, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for ExternalCrateData
[src]
impl Encodable for ExternalCrateData
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Debug for ExternalCrateData
[src]
impl Debug for ExternalCrateData
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ExternalCrateData
[src]
impl Clone for ExternalCrateData
fn clone(&self) -> ExternalCrateData
[src]
fn clone(&self) -> ExternalCrateData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ExternalCrateData
impl Send for ExternalCrateData
impl Sync for ExternalCrateData
impl Sync for ExternalCrateData