pub struct StateName { /* private fields */ }
Expand description
A state name
A state name is usually represented by its “opaque value”, which is a 64-bit integer. This opaque value can be
converted to a “transparent” value by XOR’ing with the magic number 0x41C64E6DA3BC0074
. This transparent value
encodes certain properties of the state name in its bits. The set of these properties is represented by the
StateNameDescriptor
type. Use the provided TryFrom
/TryInto
implementations to convert between a
StateName
(represented by its opaque value) and the corresponding StateNameDescriptor
.
Implementations§
Trait Implementations§
source§impl PartialEq<StateName> for u64
impl PartialEq<StateName> for u64
source§impl PartialEq for StateName
impl PartialEq for StateName
source§impl TryFrom<StateName> for StateNameDescriptor
impl TryFrom<StateName> for StateNameDescriptor
source§impl TryFrom<StateNameDescriptor> for StateName
impl TryFrom<StateNameDescriptor> for StateName
§type Error = StateNameFromDescriptorError
type Error = StateNameFromDescriptorError
The type returned in the event of a conversion error.
impl Copy for StateName
impl Eq for StateName
impl StructuralPartialEq for StateName
Auto Trait Implementations§
impl Freeze for StateName
impl RefUnwindSafe for StateName
impl Send for StateName
impl Sync for StateName
impl Unpin for StateName
impl UnwindSafe for StateName
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)