pub struct Gas(/* private fields */);
Implementations§
Trait Implementations§
Source§impl Decodable for Gas
impl Decodable for Gas
Source§fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
Source§impl Encodable for Gas
impl Encodable for Gas
Source§fn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
Source§fn rlp_bytes(&self) -> ElasticArray1024<u8>
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
Source§impl Ord for Gas
impl Ord for Gas
Source§impl PartialOrd for Gas
impl PartialOrd for Gas
impl Copy for Gas
impl Eq for Gas
impl StructuralPartialEq for Gas
Auto Trait Implementations§
impl Freeze for Gas
impl RefUnwindSafe for Gas
impl Send for Gas
impl Sync for Gas
impl Unpin for Gas
impl UnwindSafe for Gas
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