pub struct CompactOpReceiptFlags { /* private fields */ }op and std and test-utils only.Expand description
Fieldset that facilitates compacting the parent type. Used bytes: 2 | Unused bits: 6
Implementations§
Source§impl CompactOpReceiptFlags
impl CompactOpReceiptFlags
Sourcepub const fn into_bytes(self) -> [u8; 2]
pub const fn into_bytes(self) -> [u8; 2]
Sourcepub const fn from_bytes(bytes: [u8; 2]) -> Self
pub const fn from_bytes(bytes: [u8; 2]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl CompactOpReceiptFlags
impl CompactOpReceiptFlags
Sourcepub fn tx_type_len(&self) -> <B2 as Specifier>::InOut
pub fn tx_type_len(&self) -> <B2 as Specifier>::InOut
Returns the value of tx_type_len.
Sourcepub fn tx_type_len_or_err(
&self,
) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
pub fn tx_type_len_or_err( &self, ) -> Result<<B2 as Specifier>::InOut, InvalidBitPattern<<B2 as Specifier>::Bytes>>
Returns the value of tx_type_len.
#Errors
If the returned value contains an invalid bit pattern for tx_type_len.
Sourcepub fn with_tx_type_len(self, new_val: <B2 as Specifier>::InOut) -> Self
pub fn with_tx_type_len(self, new_val: <B2 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of tx_type_len set to the given value.
#Panics
If the given value is out of bounds for tx_type_len.
Sourcepub fn with_tx_type_len_checked(
self,
new_val: <B2 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_tx_type_len_checked( self, new_val: <B2 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of tx_type_len set to the given value.
#Errors
If the given value is out of bounds for tx_type_len.
Sourcepub fn set_tx_type_len(&mut self, new_val: <B2 as Specifier>::InOut)
pub fn set_tx_type_len(&mut self, new_val: <B2 as Specifier>::InOut)
Sets the value of tx_type_len to the given value.
#Panics
If the given value is out of bounds for tx_type_len.
Sourcepub fn set_tx_type_len_checked(
&mut self,
new_val: <B2 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_tx_type_len_checked( &mut self, new_val: <B2 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of tx_type_len to the given value.
#Errors
If the given value is out of bounds for tx_type_len.
Sourcepub fn success_len(&self) -> <B1 as Specifier>::InOut
pub fn success_len(&self) -> <B1 as Specifier>::InOut
Returns the value of success_len.
Sourcepub fn success_len_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn success_len_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of success_len.
#Errors
If the returned value contains an invalid bit pattern for success_len.
Sourcepub fn with_success_len(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_success_len(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of success_len set to the given value.
#Panics
If the given value is out of bounds for success_len.
Sourcepub fn with_success_len_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_success_len_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of success_len set to the given value.
#Errors
If the given value is out of bounds for success_len.
Sourcepub fn set_success_len(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_success_len(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of success_len to the given value.
#Panics
If the given value is out of bounds for success_len.
Sourcepub fn set_success_len_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_success_len_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of success_len to the given value.
#Errors
If the given value is out of bounds for success_len.
Sourcepub fn cumulative_gas_used_len(&self) -> <B4 as Specifier>::InOut
pub fn cumulative_gas_used_len(&self) -> <B4 as Specifier>::InOut
Returns the value of cumulative_gas_used_len.
Sourcepub fn cumulative_gas_used_len_or_err(
&self,
) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
pub fn cumulative_gas_used_len_or_err( &self, ) -> Result<<B4 as Specifier>::InOut, InvalidBitPattern<<B4 as Specifier>::Bytes>>
Returns the value of cumulative_gas_used_len.
#Errors
If the returned value contains an invalid bit pattern for cumulative_gas_used_len.
Sourcepub fn with_cumulative_gas_used_len(
self,
new_val: <B4 as Specifier>::InOut,
) -> Self
pub fn with_cumulative_gas_used_len( self, new_val: <B4 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of cumulative_gas_used_len set to the given value.
#Panics
If the given value is out of bounds for cumulative_gas_used_len.
Sourcepub fn with_cumulative_gas_used_len_checked(
self,
new_val: <B4 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_cumulative_gas_used_len_checked( self, new_val: <B4 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of cumulative_gas_used_len set to the given value.
#Errors
If the given value is out of bounds for cumulative_gas_used_len.
Sourcepub fn set_cumulative_gas_used_len(&mut self, new_val: <B4 as Specifier>::InOut)
pub fn set_cumulative_gas_used_len(&mut self, new_val: <B4 as Specifier>::InOut)
Sets the value of cumulative_gas_used_len to the given value.
#Panics
If the given value is out of bounds for cumulative_gas_used_len.
Sourcepub fn set_cumulative_gas_used_len_checked(
&mut self,
new_val: <B4 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_cumulative_gas_used_len_checked( &mut self, new_val: <B4 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of cumulative_gas_used_len to the given value.
#Errors
If the given value is out of bounds for cumulative_gas_used_len.
Sourcepub fn deposit_nonce_len(&self) -> <B1 as Specifier>::InOut
pub fn deposit_nonce_len(&self) -> <B1 as Specifier>::InOut
Returns the value of deposit_nonce_len.
Sourcepub fn deposit_nonce_len_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn deposit_nonce_len_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of deposit_nonce_len.
#Errors
If the returned value contains an invalid bit pattern for deposit_nonce_len.
Sourcepub fn with_deposit_nonce_len(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with_deposit_nonce_len(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of deposit_nonce_len set to the given value.
#Panics
If the given value is out of bounds for deposit_nonce_len.
Sourcepub fn with_deposit_nonce_len_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_deposit_nonce_len_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of deposit_nonce_len set to the given value.
#Errors
If the given value is out of bounds for deposit_nonce_len.
Sourcepub fn set_deposit_nonce_len(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set_deposit_nonce_len(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of deposit_nonce_len to the given value.
#Panics
If the given value is out of bounds for deposit_nonce_len.
Sourcepub fn set_deposit_nonce_len_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_deposit_nonce_len_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of deposit_nonce_len to the given value.
#Errors
If the given value is out of bounds for deposit_nonce_len.
Sourcepub fn deposit_receipt_version_len(&self) -> <B1 as Specifier>::InOut
pub fn deposit_receipt_version_len(&self) -> <B1 as Specifier>::InOut
Returns the value of deposit_receipt_version_len.
Sourcepub fn deposit_receipt_version_len_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn deposit_receipt_version_len_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of deposit_receipt_version_len.
#Errors
If the returned value contains an invalid bit pattern for deposit_receipt_version_len.
Sourcepub fn with_deposit_receipt_version_len(
self,
new_val: <B1 as Specifier>::InOut,
) -> Self
pub fn with_deposit_receipt_version_len( self, new_val: <B1 as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of deposit_receipt_version_len set to the given value.
#Panics
If the given value is out of bounds for deposit_receipt_version_len.
Sourcepub fn with_deposit_receipt_version_len_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_deposit_receipt_version_len_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of deposit_receipt_version_len set to the given value.
#Errors
If the given value is out of bounds for deposit_receipt_version_len.
Sourcepub fn set_deposit_receipt_version_len(
&mut self,
new_val: <B1 as Specifier>::InOut,
)
pub fn set_deposit_receipt_version_len( &mut self, new_val: <B1 as Specifier>::InOut, )
Sets the value of deposit_receipt_version_len to the given value.
#Panics
If the given value is out of bounds for deposit_receipt_version_len.
Sourcepub fn set_deposit_receipt_version_len_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_deposit_receipt_version_len_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of deposit_receipt_version_len to the given value.
#Errors
If the given value is out of bounds for deposit_receipt_version_len.
Sourcepub fn __zstd_or_err(
&self,
) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
pub fn __zstd_or_err( &self, ) -> Result<<B1 as Specifier>::InOut, InvalidBitPattern<<B1 as Specifier>::Bytes>>
Returns the value of __zstd.
#Errors
If the returned value contains an invalid bit pattern for __zstd.
Sourcepub fn with___zstd(self, new_val: <B1 as Specifier>::InOut) -> Self
pub fn with___zstd(self, new_val: <B1 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of __zstd set to the given value.
#Panics
If the given value is out of bounds for __zstd.
Sourcepub fn with___zstd_checked(
self,
new_val: <B1 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with___zstd_checked( self, new_val: <B1 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of __zstd set to the given value.
#Errors
If the given value is out of bounds for __zstd.
Sourcepub fn set___zstd(&mut self, new_val: <B1 as Specifier>::InOut)
pub fn set___zstd(&mut self, new_val: <B1 as Specifier>::InOut)
Sets the value of __zstd to the given value.
#Panics
If the given value is out of bounds for __zstd.
Sourcepub fn set___zstd_checked(
&mut self,
new_val: <B1 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set___zstd_checked( &mut self, new_val: <B1 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of __zstd to the given value.
#Errors
If the given value is out of bounds for __zstd.
Trait Implementations§
Source§impl CheckTotalSizeMultipleOf8 for CompactOpReceiptFlags
impl CheckTotalSizeMultipleOf8 for CompactOpReceiptFlags
Source§impl Clone for CompactOpReceiptFlags
impl Clone for CompactOpReceiptFlags
Source§fn clone(&self) -> CompactOpReceiptFlags
fn clone(&self) -> CompactOpReceiptFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompactOpReceiptFlags
impl Debug for CompactOpReceiptFlags
Source§impl Default for CompactOpReceiptFlags
impl Default for CompactOpReceiptFlags
Source§fn default() -> CompactOpReceiptFlags
fn default() -> CompactOpReceiptFlags
impl Copy for CompactOpReceiptFlags
Auto Trait Implementations§
impl Freeze for CompactOpReceiptFlags
impl RefUnwindSafe for CompactOpReceiptFlags
impl Send for CompactOpReceiptFlags
impl Sync for CompactOpReceiptFlags
impl Unpin for CompactOpReceiptFlags
impl UnwindSafe for CompactOpReceiptFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes