pub enum ValueKind {
Uint,
Int,
Bool,
Address,
Bytes,
DynBytes,
String,
Raw,
}Expand description
How a decoded value should be read by a caller that only sees text.
Variants§
Uint
Unsigned integer or enum; decimal text.
Int
Signed integer; decimal text, possibly negative.
Bool
true / false.
Address
Checksummed 0x address.
Bytes
bytesN; 0x hex.
DynBytes
Dynamic bytes: the slot word gives the length, the data may live
in further slots (Layout::bytes_data_slots); 0x hex.
String
Dynamic string, same layout as DynBytes; text.
Raw
Not decodable from one word; the whole word as 0x hex.
Trait Implementations§
impl Copy for ValueKind
impl Eq for ValueKind
impl StructuralPartialEq for ValueKind
Auto Trait Implementations§
impl Freeze for ValueKind
impl RefUnwindSafe for ValueKind
impl Send for ValueKind
impl Sync for ValueKind
impl Unpin for ValueKind
impl UnsafeUnpin for ValueKind
impl UnwindSafe for ValueKind
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