pub struct ExternalCrate {
pub name: String,
pub html_root_url: Option<String>,
pub path: PathBuf,
}Expand description
Metadata of a crate, either the same crate on which rustdoc was invoked, or its dependency.
Fields§
§name: StringThe name of the crate.
Note: This is the crate name, which may not be the same as the
package name. For example, for https://crates.io/crates/regex-syntax,
this field will be regex_syntax (which uses an _, not a -).
html_root_url: Option<String>The root URL at which the crate’s documentation lives.
path: PathBufA path from where this crate was loaded.
This will typically be a .rlib or .rmeta. It can be used to determine which crate
this was in terms of whatever build-system invoked rustc.
Trait Implementations§
Source§impl Clone for ExternalCrate
impl Clone for ExternalCrate
Source§fn clone(&self) -> ExternalCrate
fn clone(&self) -> ExternalCrate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExternalCrate
impl Debug for ExternalCrate
Source§impl<'de> Deserialize<'de> for ExternalCrate
impl<'de> Deserialize<'de> for ExternalCrate
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>,
Source§impl Hash for ExternalCrate
impl Hash for ExternalCrate
Source§impl PartialEq for ExternalCrate
impl PartialEq for ExternalCrate
Source§impl Serialize for ExternalCrate
impl Serialize for ExternalCrate
impl Eq for ExternalCrate
impl StructuralPartialEq for ExternalCrate
Auto Trait Implementations§
impl Freeze for ExternalCrate
impl RefUnwindSafe for ExternalCrate
impl Send for ExternalCrate
impl Sync for ExternalCrate
impl Unpin for ExternalCrate
impl UnwindSafe for ExternalCrate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes