pub enum Value {
Uint(U256),
Int(I256),
Bool(bool),
Address(Address),
FixedBytes(Vec<u8>),
Bytes(Vec<u8>),
Str(String),
Raw(B256),
}Expand description
A decoded value. Raw means the layout knew the location but not how to
read it (dynamic bytes/strings, unknown encodings): the word is shown as
is rather than guessed.
Variants§
Uint(U256)
uintN, enums.
Int(I256)
intN, sign-extended.
Bool(bool)
bool.
Address(Address)
address, contract types.
FixedBytes(Vec<u8>)
bytesN.
Bytes(Vec<u8>)
Dynamic bytes, assembled from its data slots.
Str(String)
Dynamic string, assembled from its data slots.
Raw(B256)
Not decodable from a single word with this type; the full word.
Trait Implementations§
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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