pub enum VyperType {
}Expand description
Vyper type representation.
Variants§
Uint256
uint256
Uint128
uint128
Uint64
uint64
Uint32
uint32
Uint8
uint8
Int256
int256
Int128
int128
Int64
int64
Int32
int32
Int8
int8
Address
address
Bool
bool
Bytes32
bytes32
Bytes4
bytes4
Bytes(u32)
Bytes[N] — bounded byte array
StringTy(u32)
String[N] — bounded string
DynArray(Box<VyperType>, u32)
DynArray[T, N] — dynamic array with max length
FixedArray(Box<VyperType>, u32)
T[N] — fixed-size array
HashMap(Box<VyperType>, Box<VyperType>)
HashMap[K, V]
Struct(String)
A named struct type
Decimal
decimal (Vyper fixed-point)
Flag(String)
flag type (Vyper 0.3.8+, bitset enum)
Implementations§
Source§impl VyperType
impl VyperType
Sourcepub fn abi_canonical(&self) -> String
pub fn abi_canonical(&self) -> String
Returns the ABI-canonical type string for selector computation.
Sourcepub fn needs_init(&self) -> bool
pub fn needs_init(&self) -> bool
Returns true if this type is a storage/memory type needing initialization.
Trait Implementations§
impl Eq for VyperType
impl StructuralPartialEq for VyperType
Auto Trait Implementations§
impl Freeze for VyperType
impl RefUnwindSafe for VyperType
impl Send for VyperType
impl Sync for VyperType
impl Unpin for VyperType
impl UnsafeUnpin for VyperType
impl UnwindSafe for VyperType
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