pub struct ExternalCrateData {
pub file_name: String,
pub num: u32,
pub id: GlobalCrateId,
}Expand description
Data for external crates in the prelude of a crate.
Fields§
§file_name: StringSource file where the external crate is declared.
num: u32A 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: GlobalCrateIdTrait Implementations§
Source§impl Clone for ExternalCrateData
impl Clone for ExternalCrateData
Source§fn clone(&self) -> ExternalCrateData
fn clone(&self) -> ExternalCrateData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalCrateData
impl Debug for ExternalCrateData
Source§impl<'de> Deserialize<'de> for ExternalCrateData
impl<'de> Deserialize<'de> for ExternalCrateData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExternalCrateData
impl RefUnwindSafe for ExternalCrateData
impl Send for ExternalCrateData
impl Sync for ExternalCrateData
impl Unpin for ExternalCrateData
impl UnwindSafe for ExternalCrateData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more