pub struct CrateTypeInfo {
pub crate_name: String,
pub crate_version: Option<String>,
pub items: Vec<ItemInfo>,
pub types: HashMap<String, TypeDetails>,
pub traits: HashMap<String, TraitDetails>,
pub trait_impls: HashMap<String, Vec<TraitImplDetails>>,
pub inherent_impls: HashMap<String, Vec<InherentImplDetails>>,
pub type_aliases: HashMap<String, TypeAliasInfo>,
pub layouts: HashMap<String, LayoutInfo>,
pub modules: HashMap<String, ModuleInfo>,
}Expand description
Complete extracted type information for a crate. This is what the daemon caches after compilation.
Fields§
§crate_name: StringName of the crate
crate_version: Option<String>Crate version (if known)
items: Vec<ItemInfo>All items in the crate
types: HashMap<String, TypeDetails>Detailed type information (structs, enums, unions)
traits: HashMap<String, TraitDetails>All trait definitions
trait_impls: HashMap<String, Vec<TraitImplDetails>>Trait implementations (keyed by implementing type)
inherent_impls: HashMap<String, Vec<InherentImplDetails>>Inherent impls (keyed by type)
type_aliases: HashMap<String, TypeAliasInfo>Type aliases (path -> resolved type)
layouts: HashMap<String, LayoutInfo>Layout information (keyed by type path)
modules: HashMap<String, ModuleInfo>Module tree for path matching
Trait Implementations§
Source§impl Clone for CrateTypeInfo
impl Clone for CrateTypeInfo
Source§fn clone(&self) -> CrateTypeInfo
fn clone(&self) -> CrateTypeInfo
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 CrateTypeInfo
impl Debug for CrateTypeInfo
Source§impl Default for CrateTypeInfo
impl Default for CrateTypeInfo
Source§fn default() -> CrateTypeInfo
fn default() -> CrateTypeInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CrateTypeInfo
impl<'de> Deserialize<'de> for CrateTypeInfo
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 CrateTypeInfo
impl RefUnwindSafe for CrateTypeInfo
impl Send for CrateTypeInfo
impl Sync for CrateTypeInfo
impl Unpin for CrateTypeInfo
impl UnwindSafe for CrateTypeInfo
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