pub struct CrateFacts {
pub name: String,
pub manifest_path: RepoPath,
pub edition: String,
pub dependencies: BTreeSet<String>,
pub source_files: Vec<RepoPath>,
}Expand description
Facts collected for one Cargo crate.
Fields§
§name: StringThe crate name from Cargo.toml.
manifest_path: RepoPathThe manifest path for the crate.
edition: StringThe Rust edition declared by the crate.
dependencies: BTreeSet<String>Dependency names observed in the manifest.
source_files: Vec<RepoPath>Source files that anchor the crate in the working set.
Trait Implementations§
Source§impl Clone for CrateFacts
impl Clone for CrateFacts
Source§fn clone(&self) -> CrateFacts
fn clone(&self) -> CrateFacts
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 CrateFacts
impl Debug for CrateFacts
Source§impl<'de> Deserialize<'de> for CrateFacts
impl<'de> Deserialize<'de> for CrateFacts
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
Source§impl PartialEq for CrateFacts
impl PartialEq for CrateFacts
Source§impl Serialize for CrateFacts
impl Serialize for CrateFacts
impl Eq for CrateFacts
impl StructuralPartialEq for CrateFacts
Auto Trait Implementations§
impl Freeze for CrateFacts
impl RefUnwindSafe for CrateFacts
impl Send for CrateFacts
impl Sync for CrateFacts
impl Unpin for CrateFacts
impl UnsafeUnpin for CrateFacts
impl UnwindSafe for CrateFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.