#[non_exhaustive]pub enum Group {
Evm,
Testing,
Scripting,
Filesystem,
Environment,
String,
Json,
Toml,
Crypto,
Utilities,
}
Expand description
Cheatcode groups.
Initially derived and modified from inline comments in forge-std
’s Vm.sol
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Evm
Cheatcodes that read from, or write to the current EVM execution state.
Examples: any of the record
cheatcodes, chainId
, coinbase
.
Safety: ambiguous, depends on whether the cheatcode is read-only or not.
Testing
Cheatcodes that interact with how a test is run.
Examples: assume
, skip
, expectRevert
.
Safety: ambiguous, depends on whether the cheatcode is read-only or not.
Scripting
Cheatcodes that interact with how a script is run.
Examples: broadcast
, startBroadcast
, stopBroadcast
.
Safety: safe.
Filesystem
Cheatcodes that interact with the OS or filesystem.
Examples: ffi
, projectRoot
, writeFile
.
Safety: safe.
Environment
Cheatcodes that interact with the program’s environment variables.
Examples: setEnv
, envBool
, envOr
.
Safety: safe.
String
Utility cheatcodes that deal with string parsing and manipulation.
Examples: toString
. parseBytes
.
Safety: safe.
Json
Utility cheatcodes that deal with parsing values from and converting values to JSON.
Examples: serializeJson
, parseJsonUint
, writeJson
.
Safety: safe.
Toml
Utility cheatcodes that deal with parsing values from and converting values to TOML.
Examples: parseToml
, writeToml
.
Safety: safe.
Crypto
Cryptography-related cheatcodes.
Examples: sign*
.
Safety: safe.
Utilities
Generic, uncategorized utilities.
Examples: toString
, parse*
, serialize*
.
Safety: safe.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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>,
Source§impl JsonSchema for Group
impl JsonSchema for Group
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl Ord for Group
impl Ord for Group
Source§impl PartialOrd for Group
impl PartialOrd for Group
impl Copy for Group
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Evm
: 0 bytesTesting
: 0 bytesScripting
: 0 bytesFilesystem
: 0 bytesEnvironment
: 0 bytesString
: 0 bytesJson
: 0 bytesToml
: 0 bytesCrypto
: 0 bytesUtilities
: 0 bytes