pub struct InspectorStackRefMut<'a, FEN: FoundryEvmNetwork = EthEvmNetwork> {
pub cheatcodes: Option<&'a mut Cheatcodes<FEN>>,
pub inner: &'a mut InspectorStackInner,
pub backend: &'a mut dyn CheatcodesBackend<FEN>,
}Expand description
Mutable references to both parts of InspectorStack and the backend the execution runs over,
implementing the evm2 [Inspector]. Obtained via InspectorStack::as_inspector.
Fields§
§cheatcodes: Option<&'a mut Cheatcodes<FEN>>§inner: &'a mut InspectorStackInner§backend: &'a mut dyn CheatcodesBackend<FEN>The backend the execution runs over.
Cheatcodes and call isolation are only active with a backend.
Implementations§
Source§impl<FEN: FoundryEvmNetwork> InspectorStackRefMut<'_, FEN>
impl<FEN: FoundryEvmNetwork> InspectorStackRefMut<'_, FEN>
Sourcefn cheats_and_backend(
&mut self,
) -> Option<(&mut Cheatcodes<FEN>, &mut dyn CheatcodesBackend<FEN>, &mut InspectorStackInner)>
fn cheats_and_backend( &mut self, ) -> Option<(&mut Cheatcodes<FEN>, &mut dyn CheatcodesBackend<FEN>, &mut InspectorStackInner)>
Whether the cheatcodes are active: installed, with a backend to run over.
Sourcefn isolates(&self, root: u16, depth: u16) -> bool
fn isolates(&self, root: u16, depth: u16) -> bool
Whether a frame at depth runs as an isolated transaction: a top-level frame one level
below the transaction’s root at root, or a synthetic deployCode create rewritten to a
CREATE2 factory call.
Sourcefn finish_create2_redirect(
&mut self,
message: &MessageFor<FEN>,
result: &mut MessageResultFor<FEN>,
)
fn finish_create2_redirect( &mut self, message: &MessageFor<FEN>, result: &mut MessageResultFor<FEN>, )
Converts the result of a CREATE frame redirected to the CREATE2 factory, if message is
one, into the result of the CREATE.
fn do_call_end( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &MessageFor<FEN>, result: &mut MessageResultFor<FEN>, )
fn do_create_end( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &MessageFor<FEN>, result: &mut MessageResultFor<FEN>, )
Sourcefn env_handoff(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &mut MessageFor<FEN>,
) -> Option<MessageResultFor<FEN>>
fn env_handoff( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &mut MessageFor<FEN>, ) -> Option<MessageResultFor<FEN>>
Executes message on a frame EVM with the spec and chain ID requested while the
transaction is in flight, if they differ from the running EVM’s.
evm2 fixes the spec and chain ID of a running EVM, so a change deferred by an in-flight
operation, such as vm.chainId or a fork switch, or requested by vm.setEvmVersion,
moves new frames onto a frame EVM built with it while the running frames keep theirs, so the
change applies to the frames started after it. The message’s hooks run on the frame EVM.
Cheatcode calls run on the running EVM: they execute no code, and the cheatcodes that read or change the environment act on the running EVM and the in-flight request.
Sourcefn transact_inner(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &MessageFor<FEN>,
precharged_state: u64,
) -> MessageResultFor<FEN>
fn transact_inner( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &MessageFor<FEN>, precharged_state: u64, ) -> MessageResultFor<FEN>
Executes message, a top-level call or create of the running transaction, as a separate
nested transaction, for precise gas accounting and transaction state changes.
The nested transaction runs with a zero base fee and without fee charges, with the message’s gas plus the transaction’s intrinsic gas. Its state changes are merged into the running transaction as journaled writes, unless a cheatcode replaced the running state inside it, such as a state snapshot restoration or a fork switch, in which case the running transaction adopts the nested EVM’s whole state.
precharged_state is the account-creation state gas the CALL or CREATE opcode that created
message already charged. It is credited as far as the nested transaction charges it again
at its top level, which can differ when a prank or broadcast changed the destination.
Sourcefn top_level_frame_start(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn top_level_frame_start(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Invoked at the beginning of a new top-level frame, at the EVM’s initial call depth.
Sourcefn capture_executed_destructs(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
)
fn capture_executed_destructs( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, )
Captures the accounts a nested transaction self-destructed, including the ones it created,
when its root frame ends, before the transaction destroys them. See
destructed_accounts.
Sourcefn capture_switch_warmth(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
result: &MessageResultFor<FEN>,
)
fn capture_switch_warmth( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, result: &MessageResultFor<FEN>, )
Captures the warmth of an isolated call whose root frame succeeded on another fork than it started on, before its transaction ends and clears it.
Sourcefn start_inner_root(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &mut MessageFor<FEN>,
) -> bool
fn start_inner_root( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &mut MessageFor<FEN>, ) -> bool
Handles the root frame of a nested transaction, returning whether message is one that
skips the inspectors’ hooks.
fn step_inlined(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Sourcefn step_at_deadline_poll(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn step_at_deadline_poll(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Polls the cancellation and its deadline, then runs the step hooks.
Sourceconst fn cancel_execution(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
const fn cancel_execution(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Stops the frame because the execution was cancelled.
Sourcefn step_hooks(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn step_hooks(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Runs the step hooks of the inspectors that step the instruction, if any does.
The frame steps the union of every inspector’s opcodes and the cancellation poll’s, so the instructions stepped only for the poll return from here without a call.
Sourcefn step_hooks_slow(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn step_hooks_slow(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Runs the step hooks of the inspectors that step the instruction.
fn step_end_inlined(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Sourcefn step_end_hooks(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn step_end_hooks(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Runs the step end hooks of the inspectors that stepped the instruction.
Sourcefn refresh_cheat_steps(&mut self)
fn refresh_cheat_steps(&mut self)
Reads the opcodes the cheatcodes and the other step inspectors step again.
Sourcefn suspend_stepped(&mut self)
fn suspend_stepped(&mut self)
Saves which hooks stepped the instruction that makes a message, before the frames of the
message overwrite it. Self::restore_cheat_stepped takes it back when the message ends.
Sourcefn restore_cheat_stepped(&mut self)
fn restore_cheat_stepped(&mut self)
Refreshes the stepped opcodes after a message’s end hooks finish mutating the inspectors’ state, and restores which hooks stepped the instruction that made the message.
The static hooks are paired: the instruction’s step_end runs them only if its step
did. The message can change the cheatcode state, so the cheatcode step_end hook runs
whenever the cheatcodes step any instruction.
Sourcefn redirect_create2(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &mut MessageFor<FEN>,
) -> bool
fn redirect_create2( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &mut MessageFor<FEN>, ) -> bool
Rewrites a CREATE frame into a call to the CREATE2 factory if the cheatcodes request it.
Returns whether the frame was rewritten. If the factory is missing or invalid, the error is returned by the create hook after the other inspectors observed the frame.
Sourcefn end_snapshot_frame(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &MessageFor<FEN>,
result: &MessageResultFor<FEN>,
)
fn end_snapshot_frame( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &MessageFor<FEN>, result: &MessageResultFor<FEN>, )
Closes the snapshot restoration frame message ran in, if any, undoing the restorations
made inside it if it failed.
Source§impl<FEN: FoundryEvmNetwork> InspectorStackRefMut<'_, FEN>
impl<FEN: FoundryEvmNetwork> InspectorStackRefMut<'_, FEN>
Sourcefn cool_for_static_call(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn cool_for_static_call(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Cools the running transaction’s loaded accounts and storage before an isolated STATICCALL, as for a separate transaction.
Storage of accounts with arbitrary storage stays warm, so its generated values are kept.
Trait Implementations§
Source§impl<FEN: FoundryEvmNetwork> Inspector<<<FEN as FoundryEvmNetwork>::EvmFactory as FoundryEvmFactory>::Types> for InspectorStackRefMut<'_, FEN>
impl<FEN: FoundryEvmNetwork> Inspector<<<FEN as FoundryEvmNetwork>::EvmFactory as FoundryEvmFactory>::Types> for InspectorStackRefMut<'_, FEN>
Source§fn inspector_config(&self) -> InspectorConfig
fn inspector_config(&self) -> InspectorConfig
InspectorConfig]. Read moreSource§fn initialize_interp(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn initialize_interp(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Source§fn step(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn step(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Source§fn step_end(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
fn step_end(&mut self, interp: &mut InterpreterFor<'_, '_, FEN>)
Source§fn log(&mut self, log: &Log, host: &mut FoundryEvmFor<'_, FEN>)
fn log(&mut self, log: &Log, host: &mut FoundryEvmFor<'_, FEN>)
Source§fn call(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &mut MessageFor<FEN>,
) -> Option<MessageResultFor<FEN>>
fn call( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &mut MessageFor<FEN>, ) -> Option<MessageResultFor<FEN>>
Source§fn call_end(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &MessageFor<FEN>,
result: &mut MessageResultFor<FEN>,
)
fn call_end( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &MessageFor<FEN>, result: &mut MessageResultFor<FEN>, )
Source§fn create(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &mut MessageFor<FEN>,
) -> Option<MessageResultFor<FEN>>
fn create( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &mut MessageFor<FEN>, ) -> Option<MessageResultFor<FEN>>
Source§fn create_end(
&mut self,
interp: &mut InterpreterFor<'_, '_, FEN>,
message: &MessageFor<FEN>,
result: &mut MessageResultFor<FEN>,
)
fn create_end( &mut self, interp: &mut InterpreterFor<'_, '_, FEN>, message: &MessageFor<FEN>, result: &mut MessageResultFor<FEN>, )
Source§fn selfdestruct(
&mut self,
contract: &Address,
target: &Address,
value: &U256,
host: &mut FoundryEvmFor<'_, FEN>,
)
fn selfdestruct( &mut self, contract: &Address, target: &Address, value: &U256, host: &mut FoundryEvmFor<'_, FEN>, )
Auto Trait Implementations§
impl<'a, FEN = EthEvmNetwork> !RefUnwindSafe for InspectorStackRefMut<'a, FEN>
impl<'a, FEN = EthEvmNetwork> !Send for InspectorStackRefMut<'a, FEN>
impl<'a, FEN = EthEvmNetwork> !Sync for InspectorStackRefMut<'a, FEN>
impl<'a, FEN = EthEvmNetwork> !UnwindSafe for InspectorStackRefMut<'a, FEN>
impl<'a, FEN> Freeze for InspectorStackRefMut<'a, FEN>
impl<'a, FEN> Unpin for InspectorStackRefMut<'a, FEN>
impl<'a, FEN> UnsafeUnpin for InspectorStackRefMut<'a, FEN>where
Option<&'a mut Cheatcodes<FEN>>: UnsafeUnpin,
&'a mut dyn CheatcodesBackend<FEN>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Conv for T
impl<T> Conv for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§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.§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.§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.§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.§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.§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.§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.§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.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv] from a transaction and a sender address.§impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
§fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
TxEnv] from a transaction, its sender, and encoded transaction bytes.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].impl<T> MaybeCompact for T
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§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 more§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 more§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
§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
§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.§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.§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.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§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 more§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 more§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 more§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 more§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 more§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 more§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.§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.§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.§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.§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.§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.§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.§impl<T> Threaded<T> for T
impl<T> Threaded<T> for T
§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 32 bytes