pub enum Amd64Variant {
V1,
V2,
V3,
V4,
}Expand description
x86_64 micro-architecture level — v1 (baseline), v2, v3, or v4.
Typed so a typo fails at config-parse time instead of flowing on as an
arbitrary string. This is the ONE type for every amd64_variant: config
field: BuildConfig::amd64_variant —
where the declared level names a tuned group’s artifacts and derived asset
names — AurSourceConfig::amd64_variant, where it constrains the
prepare: / build: / package: template var surface to a known set
(AUR source pkgs build from the upstream tarball, so an invalid value
would otherwise render silently into the PKGBUILD), and the variant
selector on every installer/packager/publisher config
(dmg/msi/nsis/nfpm, homebrew/scoop/chocolatey/winget/krew/nix/aur), where
a free-string typo would silently match only variant-less baseline
archives and ship the untuned binary. Artifact metadata stays
string-typed; selectors compare via Amd64Variant::as_str.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for Amd64Variant
impl Clone for Amd64Variant
Source§fn clone(&self) -> Amd64Variant
fn clone(&self) -> Amd64Variant
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Amd64Variant
Source§impl Debug for Amd64Variant
impl Debug for Amd64Variant
Source§impl<'de> Deserialize<'de> for Amd64Variant
impl<'de> Deserialize<'de> for Amd64Variant
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>,
impl Eq for Amd64Variant
Source§impl JsonSchema for Amd64Variant
impl JsonSchema for Amd64Variant
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for Amd64Variant
impl PartialEq for Amd64Variant
Source§impl Serialize for Amd64Variant
impl Serialize for Amd64Variant
impl StructuralPartialEq for Amd64Variant
Auto Trait Implementations§
impl Freeze for Amd64Variant
impl RefUnwindSafe for Amd64Variant
impl Send for Amd64Variant
impl Sync for Amd64Variant
impl Unpin for Amd64Variant
impl UnsafeUnpin for Amd64Variant
impl UnwindSafe for Amd64Variant
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>,
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
key and return true if they are equal.