#[repr(u8)]pub enum RUnitKind {
Percent = 0,
Celsius = 1,
Bytes = 2,
BytesPerSec = 3,
Hertz = 4,
Watts = 5,
Volts = 6,
Rpm = 7,
Count = 8,
Custom = 9,
}Expand description
Discriminant for RUnit. Unit-only enum, fixed #[repr(u8)]
layout; new variants are wire-format-breaking and require an ABI
bump.
Variants§
Percent = 0
Celsius = 1
Bytes = 2
BytesPerSec = 3
Hertz = 4
Watts = 5
Volts = 6
Rpm = 7
Count = 8
Custom = 9
Trait Implementations§
impl Copy for RUnitKind
impl Eq for RUnitKind
Source§impl IStable for RUnitKind
impl IStable for RUnitKind
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64
const ID: u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <Tuple2<u8, ()> as IStable>::ForbiddenValues
type ForbiddenValues = <Tuple2<u8, ()> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Tuple2<u8, ()> as IStable>::UnusedBits
type UnusedBits = <Tuple2<u8, ()> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type HasExactlyOneNiche = B0
type HasExactlyOneNiche = B0
Allows the detection of whether or not
core::option::Options are stable: Read moreSource§type ContainsIndirections = <Tuple2<u8, ()> as IStable>::ContainsIndirections
type ContainsIndirections = <Tuple2<u8, ()> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
impl StructuralPartialEq for RUnitKind
Auto Trait Implementations§
impl Freeze for RUnitKind
impl RefUnwindSafe for RUnitKind
impl Send for RUnitKind
impl Sync for RUnitKind
impl Unpin for RUnitKind
impl UnsafeUnpin for RUnitKind
impl UnwindSafe for RUnitKind
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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<T> IPod for T
impl<T> IPod for T
Source§fn identifier() -> u64
fn identifier() -> u64
Produces an identifier for the type, allowing to check type at runtime (barring collisions).