325982c418
In preparation for managed toolchains #2607, just renames the crate to something broader. See #4121 and https://github.com/astral-sh/uv/pull/4138 to see the final intent.
22 lines
430 B
Rust
22 lines
430 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
|
|
pub enum PointerSize {
|
|
/// 32-bit architecture.
|
|
#[serde(rename = "32")]
|
|
_32,
|
|
/// 64-bit architecture.
|
|
#[serde(rename = "64")]
|
|
_64,
|
|
}
|
|
|
|
impl PointerSize {
|
|
pub const fn is_32(self) -> bool {
|
|
matches!(self, Self::_32)
|
|
}
|
|
|
|
pub const fn is_64(self) -> bool {
|
|
matches!(self, Self::_64)
|
|
}
|
|
}
|