pub struct ScoPacketType<S: Storage, ST: State = UncheckedState> { /* private fields */ }Implementations§
Source§impl<S: Storage> ScoPacketType<S, UncheckedState>
impl<S: Storage> ScoPacketType<S, UncheckedState>
Source§impl<S: Storage, ST: State> ScoPacketType<S, ST>
impl<S: Storage, ST: State> ScoPacketType<S, ST>
Sourcepub unsafe fn new_in_state(storage: S) -> Self
pub unsafe fn new_in_state(storage: S) -> Self
Constructs a view in a specific typestate.
§Safety
The caller must ensure that storage satisfies the layout invariants for ST.
pub fn into_storage(self) -> S
pub fn hv1(&self) -> BitFlag<1, 0, Null, S::Sliced<'_>, ST>
pub fn hv2(&self) -> BitFlag<1, 1, Null, S::Sliced<'_>, ST>
pub fn hv3(&self) -> BitFlag<1, 2, Null, S::Sliced<'_>, ST>
pub fn ev3(&self) -> BitFlag<1, 3, Null, S::Sliced<'_>, ST>
pub fn ev4(&self) -> BitFlag<1, 4, Null, S::Sliced<'_>, ST>
pub fn ev5(&self) -> BitFlag<1, 5, Null, S::Sliced<'_>, ST>
pub fn not_2_ev3(&self) -> BitFlag<1, 6, Null, S::Sliced<'_>, ST>
pub fn not_3_ev3(&self) -> BitFlag<1, 7, Null, S::Sliced<'_>, ST>
pub fn not_2_ev5(&self) -> BitFlag<1, 8, Null, S::Sliced<'_>, ST>
pub fn not_3_ev5(&self) -> BitFlag<1, 9, Null, S::Sliced<'_>, ST>
Trait Implementations§
Source§impl<S: Storage> CheckComplete for ScoPacketType<S, UncheckedState>
impl<S: Storage> CheckComplete for ScoPacketType<S, UncheckedState>
type Completed = ScoPacketType<S, CompleteState>
fn check_complete(self) -> Result<Self::Completed, Error>
Source§impl<S: Storage> CheckOk for ScoPacketType<S, UncheckedState>
impl<S: Storage> CheckOk for ScoPacketType<S, UncheckedState>
Source§impl<S: Storage> CheckOk for ScoPacketType<S, CompleteState>
impl<S: Storage> CheckOk for ScoPacketType<S, CompleteState>
Auto Trait Implementations§
impl<S, ST> Freeze for ScoPacketType<S, ST>where
S: Freeze,
impl<S, ST> RefUnwindSafe for ScoPacketType<S, ST>where
S: RefUnwindSafe,
ST: RefUnwindSafe,
impl<S, ST> Send for ScoPacketType<S, ST>
impl<S, ST> Sync for ScoPacketType<S, ST>
impl<S, ST> Unpin for ScoPacketType<S, ST>
impl<S, ST> UnsafeUnpin for ScoPacketType<S, ST>where
S: UnsafeUnpin,
impl<S, ST> UnwindSafe for ScoPacketType<S, ST>where
S: UnwindSafe,
ST: UnwindSafe,
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