Struct clarity::types::BigEndianInt
source · pub struct BigEndianInt(pub Uint256);
Expand description
A thin wrapper type to change the way Uint256 is serialized.
This is done this way to overcome the “orphan rule” where you can’t implement traits for a type that comes from different crate.
Tuple Fields§
§0: Uint256
Trait Implementations§
source§impl<'de> Deserialize<'de> for BigEndianInt
impl<'de> Deserialize<'de> for BigEndianInt
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
Auto Trait Implementations§
impl Freeze for BigEndianInt
impl RefUnwindSafe for BigEndianInt
impl Send for BigEndianInt
impl Sync for BigEndianInt
impl Unpin for BigEndianInt
impl UnwindSafe for BigEndianInt
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