pub enum UnitState {
Complete,
Waiting,
Incomplete,
Malformed,
}Expand description
Lifecycle state of a canonical unit.
Variants§
Complete
Fully assembled and immutable (typical for sentences).
Waiting
Lifecycle-bearing unit awaiting more correlated material.
Incomplete
Explicitly incomplete (malformed or terminated mid-assembly).
Malformed
Malformed input sealed as such.
Trait Implementations§
impl Copy for UnitState
Source§impl<'de> Deserialize<'de> for UnitState
impl<'de> Deserialize<'de> for UnitState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnitState
impl StructuralPartialEq for UnitState
Auto Trait Implementations§
impl Freeze for UnitState
impl RefUnwindSafe for UnitState
impl Send for UnitState
impl Sync for UnitState
impl Unpin for UnitState
impl UnsafeUnpin for UnitState
impl UnwindSafe for UnitState
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