pub struct Context<BLOCK = BlockEnv, TX = TxEnv, CFG = CfgEnv, DB: Database = EmptyDB, JOURNAL: JournalTr<Database = DB> = Journal<DB>, CHAIN = (), LOCAL: LocalContextTr = LocalContext> {
pub block: BLOCK,
pub tx: TX,
pub cfg: CFG,
pub journaled_state: JOURNAL,
pub chain: CHAIN,
pub local: LOCAL,
pub error: Result<(), ContextError<DB::Error>>,
}Expand description
EVM context contains data that EVM needs for execution.
Fields§
§block: BLOCKBlock information.
tx: TXTransaction information.
cfg: CFGConfigurations.
journaled_state: JOURNALEVM State with journaling support and database.
chain: CHAINInner context.
local: LOCALLocal context that is filled by execution.
error: Result<(), ContextError<DB::Error>>Error that happened during execution.
Implementations§
Source§impl<BLOCK: Block + Default, TX: Transaction + Default, DB: Database, JOURNAL: JournalTr<Database = DB>, CHAIN: Default, LOCAL: LocalContextTr + Default> Context<BLOCK, TX, CfgEnv, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK: Block + Default, TX: Transaction + Default, DB: Database, JOURNAL: JournalTr<Database = DB>, CHAIN: Default, LOCAL: LocalContextTr + Default> Context<BLOCK, TX, CfgEnv, DB, JOURNAL, CHAIN, LOCAL>
Source§impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>where
BLOCK: Block,
TX: Transaction,
CFG: Cfg,
DB: Database,
JOURNAL: JournalTr<Database = DB>,
LOCAL: LocalContextTr,
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>where
BLOCK: Block,
TX: Transaction,
CFG: Cfg,
DB: Database,
JOURNAL: JournalTr<Database = DB>,
LOCAL: LocalContextTr,
Sourcepub fn with_new_journal<OJOURNAL: JournalTr<Database = DB>>(
self,
journal: OJOURNAL,
) -> Context<BLOCK, TX, CFG, DB, OJOURNAL, CHAIN, LOCAL>
pub fn with_new_journal<OJOURNAL: JournalTr<Database = DB>>( self, journal: OJOURNAL, ) -> Context<BLOCK, TX, CFG, DB, OJOURNAL, CHAIN, LOCAL>
Creates a new context with a new journal type. New journal needs to have the same database type.
Sourcepub fn with_db<ODB: Database>(
self,
db: ODB,
) -> Context<BLOCK, TX, CFG, ODB, Journal<ODB>, CHAIN, LOCAL>
pub fn with_db<ODB: Database>( self, db: ODB, ) -> Context<BLOCK, TX, CFG, ODB, Journal<ODB>, CHAIN, LOCAL>
Creates a new context with a new database type.
This will create a new Journal object.
Sourcepub fn with_ref_db<ODB: DatabaseRef>(
self,
db: ODB,
) -> Context<BLOCK, TX, CFG, WrapDatabaseRef<ODB>, Journal<WrapDatabaseRef<ODB>>, CHAIN, LOCAL>
pub fn with_ref_db<ODB: DatabaseRef>( self, db: ODB, ) -> Context<BLOCK, TX, CFG, WrapDatabaseRef<ODB>, Journal<WrapDatabaseRef<ODB>>, CHAIN, LOCAL>
Creates a new context with a new DatabaseRef type.
Sourcepub fn with_block<OB: Block>(
self,
block: OB,
) -> Context<OB, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
pub fn with_block<OB: Block>( self, block: OB, ) -> Context<OB, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Creates a new context with a new block type.
Sourcepub fn with_tx<OTX: Transaction>(
self,
tx: OTX,
) -> Context<BLOCK, OTX, CFG, DB, JOURNAL, CHAIN, LOCAL>
pub fn with_tx<OTX: Transaction>( self, tx: OTX, ) -> Context<BLOCK, OTX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Creates a new context with a new transaction type.
Sourcepub fn with_chain<OC>(
self,
chain: OC,
) -> Context<BLOCK, TX, CFG, DB, JOURNAL, OC, LOCAL>
pub fn with_chain<OC>( self, chain: OC, ) -> Context<BLOCK, TX, CFG, DB, JOURNAL, OC, LOCAL>
Creates a new context with a new chain type.
Sourcepub fn with_cfg<OCFG: Cfg>(
self,
cfg: OCFG,
) -> Context<BLOCK, TX, OCFG, DB, JOURNAL, CHAIN, LOCAL>
pub fn with_cfg<OCFG: Cfg>( self, cfg: OCFG, ) -> Context<BLOCK, TX, OCFG, DB, JOURNAL, CHAIN, LOCAL>
Creates a new context with a new chain type.
Sourcepub fn with_local<OL: LocalContextTr>(
self,
local: OL,
) -> Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, OL>
pub fn with_local<OL: LocalContextTr>( self, local: OL, ) -> Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, OL>
Creates a new context with a new local context type.
Sourcepub fn modify_cfg_chained<F>(self, f: F) -> Self
pub fn modify_cfg_chained<F>(self, f: F) -> Self
Modifies the context configuration.
Sourcepub fn modify_block_chained<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut BLOCK),
pub fn modify_block_chained<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut BLOCK),
Modifies the context block.
Sourcepub fn modify_tx_chained<F>(self, f: F) -> Self
pub fn modify_tx_chained<F>(self, f: F) -> Self
Modifies the context transaction.
Sourcepub fn modify_chain_chained<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut CHAIN),
pub fn modify_chain_chained<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut CHAIN),
Modifies the context chain.
Sourcepub fn modify_db_chained<F>(self, f: F) -> Self
pub fn modify_db_chained<F>(self, f: F) -> Self
Modifies the context database.
Sourcepub fn modify_journal_chained<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut JOURNAL),
pub fn modify_journal_chained<F>(self, f: F) -> Selfwhere
F: FnOnce(&mut JOURNAL),
Modifies the context journal.
Sourcepub fn modify_block<F>(&mut self, f: F)where
F: FnOnce(&mut BLOCK),
pub fn modify_block<F>(&mut self, f: F)where
F: FnOnce(&mut BLOCK),
Modifies the context block.
Sourcepub fn modify_cfg<F>(&mut self, f: F)
pub fn modify_cfg<F>(&mut self, f: F)
Modifies the context configuration.
Sourcepub fn modify_chain<F>(&mut self, f: F)where
F: FnOnce(&mut CHAIN),
pub fn modify_chain<F>(&mut self, f: F)where
F: FnOnce(&mut CHAIN),
Modifies the context chain.
Sourcepub fn modify_journal<F>(&mut self, f: F)where
F: FnOnce(&mut JOURNAL),
pub fn modify_journal<F>(&mut self, f: F)where
F: FnOnce(&mut JOURNAL),
Modifies the context journal.
Sourcepub fn modify_local<F>(&mut self, f: F)where
F: FnOnce(&mut LOCAL),
pub fn modify_local<F>(&mut self, f: F)where
F: FnOnce(&mut LOCAL),
Modifies the local context.
Trait Implementations§
Source§impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Clone for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Clone for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Source§impl<BLOCK: Block, TX: Transaction, DB: Database, CFG: Cfg, JOURNAL: JournalTr<Database = DB>, CHAIN, LOCAL: LocalContextTr> ContextSetters for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK: Block, TX: Transaction, DB: Database, CFG: Cfg, JOURNAL: JournalTr<Database = DB>, CHAIN, LOCAL: LocalContextTr> ContextSetters for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Source§impl<BLOCK: Block, TX: Transaction, DB: Database, CFG: Cfg, JOURNAL: JournalTr<Database = DB>, CHAIN, LOCAL: LocalContextTr> ContextTr for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK: Block, TX: Transaction, DB: Database, CFG: Cfg, JOURNAL: JournalTr<Database = DB>, CHAIN, LOCAL: LocalContextTr> ContextTr for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Source§fn all(
&self,
) -> (&Self::Block, &Self::Tx, &Self::Cfg, &Self::Db, &Self::Journal, &Self::Chain, &Self::Local)
fn all( &self, ) -> (&Self::Block, &Self::Tx, &Self::Cfg, &Self::Db, &Self::Journal, &Self::Chain, &Self::Local)
Source§fn all_mut(
&mut self,
) -> (&Self::Block, &Self::Tx, &Self::Cfg, &mut Self::Journal, &mut Self::Chain, &mut Self::Local)
fn all_mut( &mut self, ) -> (&Self::Block, &Self::Tx, &Self::Cfg, &mut Self::Journal, &mut Self::Chain, &mut Self::Local)
Source§fn error(
&mut self,
) -> &mut Result<(), ContextError<<Self::Db as Database>::Error>>
fn error( &mut self, ) -> &mut Result<(), ContextError<<Self::Db as Database>::Error>>
Source§fn journal_mut(&mut self) -> &mut Self::Journal
fn journal_mut(&mut self) -> &mut Self::Journal
Source§fn journal_ref(&self) -> &Self::Journal
fn journal_ref(&self) -> &Self::Journal
Source§fn tx_journal_mut(&mut self) -> (&Self::Tx, &mut Self::Journal)
fn tx_journal_mut(&mut self) -> (&Self::Tx, &mut Self::Journal)
Source§fn tx_block_cfg_journal_mut(
&mut self,
) -> (&Self::Tx, &Self::Block, &Self::Cfg, &mut Self::Journal)
fn tx_block_cfg_journal_mut( &mut self, ) -> (&Self::Tx, &Self::Block, &Self::Cfg, &mut Self::Journal)
Source§fn tx_local_mut(&mut self) -> (&Self::Tx, &mut Self::Local)
fn tx_local_mut(&mut self) -> (&Self::Tx, &mut Self::Local)
Source§impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Debug for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Debug for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Source§impl<BLOCK: Block, TX: Transaction, CFG: Cfg, DB: Database, JOURNAL: JournalTr<Database = DB>, CHAIN, LOCAL: LocalContextTr> Host for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK: Block, TX: Transaction, CFG: Cfg, DB: Database, JOURNAL: JournalTr<Database = DB>, CHAIN, LOCAL: LocalContextTr> Host for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
Source§fn tload(&mut self, address: Address, index: StorageKey) -> StorageValue
fn tload(&mut self, address: Address, index: StorageKey) -> StorageValue
Gets the transient storage value of address at index.
Source§fn tstore(&mut self, address: Address, index: StorageKey, value: StorageValue)
fn tstore(&mut self, address: Address, index: StorageKey, value: StorageValue)
Sets the transient storage value of address at index.
Source§fn selfdestruct(
&mut self,
address: Address,
target: Address,
) -> Option<StateLoad<SelfDestructResult>>
fn selfdestruct( &mut self, address: Address, target: Address, ) -> Option<StateLoad<SelfDestructResult>>
Marks address to be deleted, with funds transferred to target.
Source§fn blob_gasprice(&self) -> U256
fn blob_gasprice(&self) -> U256
ContextTr::block().blob_gasprice()Source§fn difficulty(&self) -> U256
fn difficulty(&self) -> U256
Source§fn prevrandao(&self) -> Option<U256>
fn prevrandao(&self) -> Option<U256>
Source§fn block_number(&self) -> U256
fn block_number(&self) -> U256
Source§fn beneficiary(&self) -> Address
fn beneficiary(&self) -> Address
Source§fn effective_gas_price(&self) -> U256
fn effective_gas_price(&self) -> U256
ContextTr::tx().effective_gas_price(basefee as u128)Source§fn blob_hash(&self, number: usize) -> Option<U256>
fn blob_hash(&self, number: usize) -> Option<U256>
ContextTr::tx().blob_hash(number)Source§fn max_initcode_size(&self) -> usize
fn max_initcode_size(&self) -> usize
ContextTr::cfg().max_code_size().saturating_mul(2)Source§fn block_hash(&mut self, requested_number: u64) -> Option<B256>
fn block_hash(&mut self, requested_number: u64) -> Option<B256>
ContextTr::journal_mut().db().block_hash(number)Source§fn sstore_skip_cold_load(
&mut self,
address: Address,
key: StorageKey,
value: StorageValue,
skip_cold_load: bool,
) -> Result<StateLoad<SStoreResult>, LoadError>
fn sstore_skip_cold_load( &mut self, address: Address, key: StorageKey, value: StorageValue, skip_cold_load: bool, ) -> Result<StateLoad<SStoreResult>, LoadError>
Source§fn sload_skip_cold_load(
&mut self,
address: Address,
key: StorageKey,
skip_cold_load: bool,
) -> Result<StateLoad<StorageValue>, LoadError>
fn sload_skip_cold_load( &mut self, address: Address, key: StorageKey, skip_cold_load: bool, ) -> Result<StateLoad<StorageValue>, LoadError>
Source§fn load_account_info_skip_cold_load(
&mut self,
address: Address,
load_code: bool,
skip_cold_load: bool,
) -> Result<AccountInfoLoad<'_>, LoadError>
fn load_account_info_skip_cold_load( &mut self, address: Address, load_code: bool, skip_cold_load: bool, ) -> Result<AccountInfoLoad<'_>, LoadError>
Source§fn sstore(
&mut self,
address: Address,
key: Uint<256, 4>,
value: Uint<256, 4>,
) -> Option<StateLoad<SStoreResult>>
fn sstore( &mut self, address: Address, key: Uint<256, 4>, value: Uint<256, 4>, ) -> Option<StateLoad<SStoreResult>>
ContextTr::journal_mut().sstore(address, key, value)Source§fn sload(
&mut self,
address: Address,
key: Uint<256, 4>,
) -> Option<StateLoad<Uint<256, 4>>>
fn sload( &mut self, address: Address, key: Uint<256, 4>, ) -> Option<StateLoad<Uint<256, 4>>>
ContextTr::journal_mut().sload(address, key)Source§fn balance(&mut self, address: Address) -> Option<StateLoad<Uint<256, 4>>>
fn balance(&mut self, address: Address) -> Option<StateLoad<Uint<256, 4>>>
ContextTr::journal_mut().load_account(address)Source§fn load_account_delegated(
&mut self,
address: Address,
) -> Option<StateLoad<AccountLoad>>
fn load_account_delegated( &mut self, address: Address, ) -> Option<StateLoad<AccountLoad>>
ContextTr::journal_mut().load_account_delegated(address)Source§fn load_account_code(&mut self, address: Address) -> Option<StateLoad<Bytes>>
fn load_account_code(&mut self, address: Address) -> Option<StateLoad<Bytes>>
Host::load_account_info_skip_cold_load with load_code set to false.Source§fn load_account_code_hash(
&mut self,
address: Address,
) -> Option<StateLoad<FixedBytes<32>>>
fn load_account_code_hash( &mut self, address: Address, ) -> Option<StateLoad<FixedBytes<32>>>
Host::load_account_info_skip_cold_load with load_code set to false.Auto Trait Implementations§
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Freeze for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> RefUnwindSafe for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>where
BLOCK: RefUnwindSafe,
TX: RefUnwindSafe,
CFG: RefUnwindSafe,
JOURNAL: RefUnwindSafe,
CHAIN: RefUnwindSafe,
LOCAL: RefUnwindSafe,
<DB as Database>::Error: RefUnwindSafe,
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Send for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Sync for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> Unpin for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>
impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL> UnwindSafe for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN, LOCAL>where
BLOCK: UnwindSafe,
TX: UnwindSafe,
CFG: UnwindSafe,
JOURNAL: UnwindSafe,
CHAIN: UnwindSafe,
LOCAL: UnwindSafe,
<DB as Database>::Error: UnwindSafe,
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,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.