#[repr(transparent)]pub struct DifLcCtrlState(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl DifLcCtrlState
impl DifLcCtrlState
pub const Raw: DifLcCtrlState
pub const TestUnlocked0: DifLcCtrlState
pub const TestLocked0: DifLcCtrlState
pub const TestUnlocked1: DifLcCtrlState
pub const TestLocked1: DifLcCtrlState
pub const TestUnlocked2: DifLcCtrlState
pub const TestLocked2: DifLcCtrlState
pub const TestUnlocked3: DifLcCtrlState
pub const TestLocked3: DifLcCtrlState
pub const TestUnlocked4: DifLcCtrlState
pub const TestLocked4: DifLcCtrlState
pub const TestUnlocked5: DifLcCtrlState
pub const TestLocked5: DifLcCtrlState
pub const TestUnlocked6: DifLcCtrlState
pub const TestLocked6: DifLcCtrlState
pub const TestUnlocked7: DifLcCtrlState
pub const Dev: DifLcCtrlState
pub const Prod: DifLcCtrlState
pub const ProdEnd: DifLcCtrlState
pub const Rma: DifLcCtrlState
pub const Scrap: DifLcCtrlState
pub const PostTransition: DifLcCtrlState
pub const Escalate: DifLcCtrlState
pub const StateInvalid: DifLcCtrlState
Source§impl DifLcCtrlState
impl DifLcCtrlState
pub fn from_redundant_encoding(encoding: u32) -> Result<Self>
Sourcepub fn redundant_encoding(&self) -> u32
pub fn redundant_encoding(&self) -> u32
Encode the given life cycle state in a redundant format where the five-bit value is repeated six times.
pub fn lc_state_to_str(self) -> &'static str
pub fn parse_lc_state_str(lc_state_str: &str) -> Result<Self>
Sourcepub fn check_transition(self, target: DifLcCtrlState) -> DifLcCtrlTransCheck
pub fn check_transition(self, target: DifLcCtrlState) -> DifLcCtrlTransCheck
Checks whether a transition is valid and whether a non-zero token is required.
Trait Implementations§
Source§impl Binary for DifLcCtrlState
impl Binary for DifLcCtrlState
Source§impl Clone for DifLcCtrlState
impl Clone for DifLcCtrlState
Source§fn clone(&self) -> DifLcCtrlState
fn clone(&self) -> DifLcCtrlState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DifLcCtrlState
impl Debug for DifLcCtrlState
Source§impl<'de> Deserialize<'de> for DifLcCtrlState
impl<'de> Deserialize<'de> for DifLcCtrlState
Source§fn deserialize<D>(deserializer: D) -> Result<DifLcCtrlState, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DifLcCtrlState, D::Error>where
D: Deserializer<'de>,
Deserializes the value by forwarding to deserialize_any
.
deserialize_any
will forward strings to the string visitor
and forward integers to the appropriate integer visitor.
Source§impl Display for DifLcCtrlState
impl Display for DifLcCtrlState
Source§impl From<DifLcCtrlState> for u32
impl From<DifLcCtrlState> for u32
Source§fn from(v: DifLcCtrlState) -> u32
fn from(v: DifLcCtrlState) -> u32
Converts to this type from the input type.
Source§impl FromStr for DifLcCtrlState
impl FromStr for DifLcCtrlState
Source§impl Hash for DifLcCtrlState
impl Hash for DifLcCtrlState
Source§impl LowerHex for DifLcCtrlState
impl LowerHex for DifLcCtrlState
Source§impl Octal for DifLcCtrlState
impl Octal for DifLcCtrlState
Source§impl Ord for DifLcCtrlState
impl Ord for DifLcCtrlState
Source§fn cmp(&self, other: &DifLcCtrlState) -> Ordering
fn cmp(&self, other: &DifLcCtrlState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DifLcCtrlState
impl PartialEq for DifLcCtrlState
Source§impl PartialOrd for DifLcCtrlState
impl PartialOrd for DifLcCtrlState
Source§impl Serialize for DifLcCtrlState
impl Serialize for DifLcCtrlState
Source§impl TryFrom<i16> for DifLcCtrlState
impl TryFrom<i16> for DifLcCtrlState
Source§impl TryFrom<i32> for DifLcCtrlState
impl TryFrom<i32> for DifLcCtrlState
Source§impl TryFrom<i64> for DifLcCtrlState
impl TryFrom<i64> for DifLcCtrlState
Source§impl TryFrom<i8> for DifLcCtrlState
impl TryFrom<i8> for DifLcCtrlState
Source§impl TryFrom<u16> for DifLcCtrlState
impl TryFrom<u16> for DifLcCtrlState
Source§impl TryFrom<u32> for DifLcCtrlState
impl TryFrom<u32> for DifLcCtrlState
Source§impl TryFrom<u64> for DifLcCtrlState
impl TryFrom<u64> for DifLcCtrlState
Source§impl TryFrom<u8> for DifLcCtrlState
impl TryFrom<u8> for DifLcCtrlState
Source§impl UpperHex for DifLcCtrlState
impl UpperHex for DifLcCtrlState
Source§impl ValueEnum for DifLcCtrlState
impl ValueEnum for DifLcCtrlState
impl Copy for DifLcCtrlState
impl Eq for DifLcCtrlState
impl StructuralPartialEq for DifLcCtrlState
Auto Trait Implementations§
impl Freeze for DifLcCtrlState
impl RefUnwindSafe for DifLcCtrlState
impl Send for DifLcCtrlState
impl Sync for DifLcCtrlState
impl Unpin for DifLcCtrlState
impl UnwindSafe for DifLcCtrlState
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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