#[non_exhaustive]pub enum CpuCount {
YamlInteger(String),
String(String),
NegativeYamlInteger(String),
}Expand description
A service cpu_count scalar category with exact authored spelling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
YamlInteger(String)
A nonnegative YAML integer retained without fixed-width conversion or normalization.
String(String)
A YAML string scalar retained without numeric coercion.
NegativeYamlInteger(String)
A negative YAML integer retained as typed invalid evidence.
Implementations§
Trait Implementations§
impl Eq for CpuCount
impl StructuralPartialEq for CpuCount
Auto Trait Implementations§
impl Freeze for CpuCount
impl RefUnwindSafe for CpuCount
impl Send for CpuCount
impl Sync for CpuCount
impl Unpin for CpuCount
impl UnsafeUnpin for CpuCount
impl UnwindSafe for CpuCount
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