struct Analyzer<'gcx> {
gcx: Gcx<'gcx>,
returns: &'gcx [VariableId],
state: FlowState,
next_value: u32,
hits: Vec<Span>,
deferred: HashMap<ExprId, Option<PendingRecovery>>,
loop_exits: Vec<FlowState>,
loop_next: Option<&'gcx Stmt<'gcx>>,
}Fields§
§gcx: Gcx<'gcx>§returns: &'gcx [VariableId]§state: FlowState§next_value: u32§hits: Vec<Span>§deferred: HashMap<ExprId, Option<PendingRecovery>>ecrecover calls whose result is being stored into a local. Their recovery is captured
here instead of being reported at the call site.
loop_exits: Vec<FlowState>States reaching break/continue or the end of the innermost loop body.
loop_next: Option<&'gcx Stmt<'gcx>>Update statement of the innermost for loop, which continue still executes.
Implementations§
Source§impl<'gcx> Analyzer<'gcx>
impl<'gcx> Analyzer<'gcx>
const fn fresh_value(&mut self) -> ValueId
fn join(&mut self, left: FlowState, right: FlowState) -> FlowState
Sourcefn join_all(&mut self, states: Vec<FlowState>) -> bool
fn join_all(&mut self, states: Vec<FlowState>) -> bool
Continues from the join of states; returns false when no path continues.
fn emit_hit(&mut self, span: Span)
fn use_value(&mut self, value: ValueId)
fn use_return_values(&mut self)
fn use_all_pending(&mut self)
Sourcefn validate_pending(&mut self)
fn validate_pending(&mut self)
Drops pending recoveries whose signature has since been proven canonical.
fn current_value(&self, expr: &Expr<'_>) -> Option<ValueId>
Sourcefn place_key(&self, expr: &Expr<'_>) -> Option<ValueKey>
fn place_key(&self, expr: &Expr<'_>) -> Option<ValueKey>
The tracked place an expression denotes: a variable or a var.field member, through
parens and uint256(..)/bytes32(..) casts.
Sourcefn reference_args(
&self,
callee: &'gcx Expr<'gcx>,
args: &'gcx CallArgs<'gcx>,
) -> Vec<VariableId>
fn reference_args( &self, callee: &'gcx Expr<'gcx>, args: &'gcx CallArgs<'gcx>, ) -> Vec<VariableId>
Memory and storage variables passed by reference to an internal function (including the
receiver of a using for call), which the callee may write through.
fn is_local(&self, var: VariableId) -> bool
Sourcefn ecrecover_call(
&self,
expr: &'gcx Expr<'gcx>,
) -> Option<(&'gcx Expr<'gcx>, &'gcx Expr<'gcx>)>
fn ecrecover_call( &self, expr: &'gcx Expr<'gcx>, ) -> Option<(&'gcx Expr<'gcx>, &'gcx Expr<'gcx>)>
The call expression and signature argument of a builtin ecrecover call.
fn pending_recovery(&self, expr: &'gcx Expr<'gcx>) -> Option<PendingRecovery>
Sourcefn live_arms<T>(
&self,
cond: &Expr<'_>,
then: T,
otherwise: T,
) -> impl Iterator<Item = T>
fn live_arms<T>( &self, cond: &Expr<'_>, then: T, otherwise: T, ) -> impl Iterator<Item = T>
The arms of cond ? then : otherwise that may execute.
Sourcefn result_calls(&self, expr: &'gcx Expr<'gcx>, out: &mut Vec<ExprId>)
fn result_calls(&self, expr: &'gcx Expr<'gcx>, out: &mut Vec<ExprId>)
ecrecover calls whose result becomes the value of expr.
fn const_value(&self, expr: &Expr<'_>) -> Option<U256>
fn const_bool(&self, expr: &Expr<'_>) -> Option<bool>
fn is_proven_low_s(&self, expr: &'gcx Expr<'gcx>) -> bool
Sourcefn assigned(&self, rhs: Option<&'gcx Expr<'gcx>>) -> (Option<ValueId>, bool)
fn assigned(&self, rhs: Option<&'gcx Expr<'gcx>>) -> (Option<ValueId>, bool)
The (value, proven low) a variable takes when assigned rhs.
fn assign(&mut self, key: ValueKey, (value, low_s): (Option<ValueId>, bool))
Sourcefn aliasable_location(&self, var: VariableId) -> Option<DataLocation>
fn aliasable_location(&self, var: VariableId) -> Option<DataLocation>
The data location through which var may alias other variables.
Sourcefn pairs(
&self,
lhs: &'gcx Expr<'gcx>,
rhs: Option<&'gcx Expr<'gcx>>,
out: &mut Vec<(Option<ValueKey>, Option<&'gcx Expr<'gcx>>)>,
)
fn pairs( &self, lhs: &'gcx Expr<'gcx>, rhs: Option<&'gcx Expr<'gcx>>, out: &mut Vec<(Option<ValueKey>, Option<&'gcx Expr<'gcx>>)>, )
Pairs every place written by lhs with the expression it receives.
Sourcefn assign_pairs(
&mut self,
pairs: &[(Option<ValueKey>, Option<&'gcx Expr<'gcx>>)],
)
fn assign_pairs( &mut self, pairs: &[(Option<ValueKey>, Option<&'gcx Expr<'gcx>>)], )
Assigns every pair, reading all right-hand sides first so tuple swaps are exact.
fn assign_lhs(&mut self, lhs: &'gcx Expr<'gcx>, rhs: Option<&'gcx Expr<'gcx>>)
Sourcefn store(
&mut self,
pairs: &[(Option<ValueKey>, Option<&'gcx Expr<'gcx>>)],
rhs: Option<&'gcx Expr<'gcx>>,
)
fn store( &mut self, pairs: &[(Option<ValueKey>, Option<&'gcx Expr<'gcx>>)], rhs: Option<&'gcx Expr<'gcx>>, )
Models a statement-level store of rhs into pairs. Recoveries stored into locals stay
pending until the local is read or the signature validated; any other destination
observes the result immediately.
fn store_expr(&mut self, lhs: &'gcx Expr<'gcx>, rhs: &'gcx Expr<'gcx>)
Sourcefn visit_lhs(&mut self, lhs: &'gcx Expr<'gcx>)
fn visit_lhs(&mut self, lhs: &'gcx Expr<'gcx>)
Visits an lvalue without treating the written variables as reads.
Sourcefn invalidate_mutable_state(&mut self)
fn invalidate_mutable_state(&mut self)
Forgets mutable state variables and storage pointers, which any state-mutating call may have written.
fn has_side_effect(&self, expr: &'gcx Expr<'gcx>) -> bool
fn assume(&mut self, predicate: &'gcx Expr<'gcx>, negate: bool)
fn add_facts(&mut self, predicate: &'gcx Expr<'gcx>, negate: bool)
Sourcefn branch(
&mut self,
cond: &'gcx Expr<'gcx>,
then: impl FnOnce(&mut Self) -> bool,
otherwise: impl FnOnce(&mut Self) -> bool,
) -> bool
fn branch( &mut self, cond: &'gcx Expr<'gcx>, then: impl FnOnce(&mut Self) -> bool, otherwise: impl FnOnce(&mut Self) -> bool, ) -> bool
Runs then and otherwise under the respective assumptions on the already visited
cond, then continues from the join of the arms that did not exit.
fn run_block(&mut self, stmts: &'gcx [Stmt<'gcx>]) -> bool
Sourcefn run_stmt(&mut self, stmt: &'gcx Stmt<'gcx>) -> bool
fn run_stmt(&mut self, stmt: &'gcx Stmt<'gcx>) -> bool
Runs stmt; returns false when control cannot continue past it.
fn run_loop( &mut self, block: &'gcx Block<'gcx>, source: LoopSource<'gcx>, ) -> bool
fn run_loop_body(&mut self, block: &'gcx Block<'gcx>)
Trait Implementations§
Source§impl<'gcx> Visit<'gcx> for Analyzer<'gcx>
impl<'gcx> Visit<'gcx> for Analyzer<'gcx>
Source§type BreakValue = <fn() -> ! as GetReturnType>::ReturnType
type BreakValue = <fn() -> ! as GetReturnType>::ReturnType
fn visit_expr(&mut self, expr: &'gcx Expr<'gcx>) -> ControlFlow<Never>
fn visit_nested_source(&mut self, id: SourceId) -> ControlFlow<Self::BreakValue>
fn visit_nested_item(&mut self, id: ItemId) -> ControlFlow<Self::BreakValue>
fn visit_item( &mut self, item: Item<'hir, 'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_contract( &mut self, id: ContractId, ) -> ControlFlow<Self::BreakValue>
fn visit_contract( &mut self, contract: &'hir Contract<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_function( &mut self, id: FunctionId, ) -> ControlFlow<Self::BreakValue>
fn visit_function( &mut self, func: &'hir Function<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_modifier( &mut self, modifier: &'hir Modifier<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_struct(&mut self, id: StructId) -> ControlFlow<Self::BreakValue>
fn visit_struct( &mut self, strukt: &'hir Struct<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_enum(&mut self, id: EnumId) -> ControlFlow<Self::BreakValue>
fn visit_enum( &mut self, enumm: &'hir Enum<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_udvt(&mut self, id: UdvtId) -> ControlFlow<Self::BreakValue>
fn visit_udvt( &mut self, udvt: &'hir Udvt<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_error(&mut self, id: ErrorId) -> ControlFlow<Self::BreakValue>
fn visit_error( &mut self, error: &'hir Error<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_event(&mut self, id: EventId) -> ControlFlow<Self::BreakValue>
fn visit_event( &mut self, event: &'hir Event<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_nested_var(&mut self, id: VariableId) -> ControlFlow<Self::BreakValue>
fn visit_var( &mut self, var: &'hir Variable<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_call_args( &mut self, args: &'hir CallArgs<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_stmt( &mut self, stmt: &'hir Stmt<'hir>, ) -> ControlFlow<Self::BreakValue>
fn visit_ty(&mut self, ty: &'hir Type<'hir>) -> ControlFlow<Self::BreakValue>
fn walk_nested_source(&mut self, id: SourceId) -> ControlFlow<Self::BreakValue>
fn walk_nested_item(&mut self, id: ItemId) -> ControlFlow<Self::BreakValue>
fn walk_item(&mut self, item: Item<'hir, 'hir>) -> ControlFlow<Self::BreakValue>
fn walk_nested_contract( &mut self, id: ContractId, ) -> ControlFlow<Self::BreakValue>
fn walk_contract( &mut self, contract: &'hir Contract<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_nested_function( &mut self, id: FunctionId, ) -> ControlFlow<Self::BreakValue>
fn walk_function( &mut self, func: &'hir Function<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_modifier( &mut self, modifier: &'hir Modifier<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_nested_struct(&mut self, id: StructId) -> ControlFlow<Self::BreakValue>
fn walk_struct( &mut self, strukt: &'hir Struct<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_nested_enum(&mut self, id: EnumId) -> ControlFlow<Self::BreakValue>
fn walk_enum( &mut self, enumm: &'hir Enum<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_nested_udvt(&mut self, id: UdvtId) -> ControlFlow<Self::BreakValue>
fn walk_udvt(&mut self, udvt: &'hir Udvt<'hir>) -> ControlFlow<Self::BreakValue>
fn walk_nested_error(&mut self, id: ErrorId) -> ControlFlow<Self::BreakValue>
fn walk_error( &mut self, error: &'hir Error<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_nested_event(&mut self, id: EventId) -> ControlFlow<Self::BreakValue>
fn walk_event( &mut self, event: &'hir Event<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_nested_var(&mut self, id: VariableId) -> ControlFlow<Self::BreakValue>
fn walk_var( &mut self, var: &'hir Variable<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_expr(&mut self, expr: &'hir Expr<'hir>) -> ControlFlow<Self::BreakValue>
fn walk_call_args( &mut self, args: &'hir CallArgs<'hir>, ) -> ControlFlow<Self::BreakValue>
fn walk_stmt(&mut self, stmt: &'hir Stmt<'hir>) -> ControlFlow<Self::BreakValue>
fn walk_ty(&mut self, ty: &'hir Type<'hir>) -> ControlFlow<Self::BreakValue>
Auto Trait Implementations§
impl<'gcx> !RefUnwindSafe for Analyzer<'gcx>
impl<'gcx> !UnwindSafe for Analyzer<'gcx>
impl<'gcx> Freeze for Analyzer<'gcx>
impl<'gcx> Send for Analyzer<'gcx>
impl<'gcx> Sync for Analyzer<'gcx>
impl<'gcx> Unpin for Analyzer<'gcx>
impl<'gcx> UnsafeUnpin for Analyzer<'gcx>
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> 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: 328 bytes