pub enum XtraHdr {
Rot(RotHdr),
Qubit(QubitHdr),
Comm(CommHdr),
None,
}Expand description
§Extra Header
Some commands require an additional header to follow the Command Header.
Variants§
Implementations§
Source§impl XtraHdr
impl XtraHdr
pub fn len(&self) -> u32
pub fn is_rot_hdr(&self) -> bool
pub fn is_qubit_hdr(&self) -> bool
pub fn is_comm_hdr(&self) -> bool
pub fn get_rot_hdr(self) -> RotHdr
pub fn get_qubit_hdr(self) -> QubitHdr
pub fn get_comm_hdr(self) -> CommHdr
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for XtraHdr
Auto Trait Implementations§
impl Freeze for XtraHdr
impl RefUnwindSafe for XtraHdr
impl Send for XtraHdr
impl Sync for XtraHdr
impl Unpin for XtraHdr
impl UnsafeUnpin for XtraHdr
impl UnwindSafe for XtraHdr
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