pub struct DeclaredConfiguration<'a> { /* private fields */ }Expand description
One selected compilation target and its complete enabled package features.
This is declared build input, not observation of Cargo or this machine. The caller supplies the complete already-unified feature set. The load checks local manifest implications and requested destinations; it does not run Cargo’s resolver or infer omitted feature activation from an ambient build.
Implementations§
Source§impl<'a> DeclaredConfiguration<'a>
impl<'a> DeclaredConfiguration<'a>
Sourcepub const fn new(
target: DeclaredCfg<'a>,
features: &'a [&'a str],
kind: TargetKind,
name: &'a str,
) -> Self
pub const fn new( target: DeclaredCfg<'a>, features: &'a [&'a str], kind: TargetKind, name: &'a str, ) -> Self
Select one exact actual target and a complete, already unified feature set.
Sourcepub const fn with_host(self, host: DeclaredCfg<'a>) -> Self
pub const fn with_host(self, host: DeclaredCfg<'a>) -> Self
Supply the independent host cfg required by build-script contexts.
Trait Implementations§
Source§impl<'a> Clone for DeclaredConfiguration<'a>
impl<'a> Clone for DeclaredConfiguration<'a>
impl<'a> Copy for DeclaredConfiguration<'a>
Auto Trait Implementations§
impl<'a> Forget for DeclaredConfiguration<'a>
impl<'a> Freeze for DeclaredConfiguration<'a>
impl<'a> Move for DeclaredConfiguration<'a>
impl<'a> RefUnwindSafe for DeclaredConfiguration<'a>
impl<'a> Send for DeclaredConfiguration<'a>
impl<'a> Sync for DeclaredConfiguration<'a>
impl<'a> Unpin for DeclaredConfiguration<'a>
impl<'a> UnsafeUnpin for DeclaredConfiguration<'a>
impl<'a> UnwindSafe for DeclaredConfiguration<'a>
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,
impl<T> EvidenceLease for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more