pub enum BuildConfiguration {
Rust(Box<RustBuild>),
Cpp(Box<CppBuild>),
}Expand description
The build configuration a variant was resolved under.
Variants§
Implementations§
Source§impl BuildConfiguration
impl BuildConfiguration
Sourcepub const fn language(&self) -> &'static str
pub const fn language(&self) -> &'static str
Which language’s build this is.
Part of the identity in its own right: the two languages’ settings are named differently, but nothing stops them lining up field for field, and two builds that share an encoding are not the same program.
Sourcepub fn settings(&self) -> Vec<Setting>
pub fn settings(&self) -> Vec<Setting>
Everything this build was told, in the order the identity encodes it.
Sourcepub fn canonical(&self) -> String
pub fn canonical(&self) -> String
The canonical, injective encoding of this configuration.
Two configurations produce the same string exactly when they are equal, whatever punctuation their arguments contain.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
A stable hex fingerprint of the canonical form.
Trait Implementations§
Source§impl Clone for BuildConfiguration
impl Clone for BuildConfiguration
Source§fn clone(&self) -> BuildConfiguration
fn clone(&self) -> BuildConfiguration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BuildConfiguration
impl Debug for BuildConfiguration
impl Eq for BuildConfiguration
Source§impl PartialEq for BuildConfiguration
impl PartialEq for BuildConfiguration
impl StructuralPartialEq for BuildConfiguration
Auto Trait Implementations§
impl Freeze for BuildConfiguration
impl RefUnwindSafe for BuildConfiguration
impl Send for BuildConfiguration
impl Sync for BuildConfiguration
impl Unpin for BuildConfiguration
impl UnsafeUnpin for BuildConfiguration
impl UnwindSafe for BuildConfiguration
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.