Struct cargo_gazelle::context::CrateContext
source · pub struct CrateContext {
pub build_script: Option<BuildScriptContext>,
}
Fields§
§build_script: Option<BuildScriptContext>
Context from the crate’s build script, if one exists.
Implementations§
source§impl CrateContext
impl CrateContext
sourcepub fn generate(
config: &GlobalConfig,
crate_config: &CrateConfig,
metadata: &PackageMetadata<'_>,
) -> Result<CrateContext, Error>
pub fn generate( config: &GlobalConfig, crate_config: &CrateConfig, metadata: &PackageMetadata<'_>, ) -> Result<CrateContext, Error>
Generates necessary external (non-Cargo.toml
) context for a crate.
Trait Implementations§
source§impl Clone for CrateContext
impl Clone for CrateContext
source§fn clone(&self) -> CrateContext
fn clone(&self) -> CrateContext
Returns a copy 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 CrateContext
impl Debug for CrateContext
source§impl Default for CrateContext
impl Default for CrateContext
source§fn default() -> CrateContext
fn default() -> CrateContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CrateContext
impl RefUnwindSafe for CrateContext
impl Send for CrateContext
impl Sync for CrateContext
impl Unpin for CrateContext
impl UnwindSafe for CrateContext
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)