pub(crate) struct SymExpr {
pub(super) kind: HashConsed<SymExprKind>,
}Fields§
§kind: HashConsed<SymExprKind>Implementations§
Source§impl SymExpr
impl SymExpr
pub(crate) fn representative_symbolic_address(&self) -> Address
pub(crate) fn symbolic_address_key(&self) -> String
pub(crate) fn address_match_condition( &self, cx: &mut SymCx, address: Address, ) -> SymBoolExpr
pub(crate) fn symbolic_address_equivalent(&self, alias: &Self) -> bool
fn address_expr_equivalent(&self, alias: &Self) -> bool
fn symbolic_address_canonical(&self) -> &Self
fn address_byte_terms(&self, cx: &mut SymCx) -> Option<Vec<Self>>
fn address_byte_terms_for_equivalence(&self) -> Option<Vec<Self>>
fn is_address_mask(&self) -> bool
fn is_shift_96(&self) -> bool
Source§impl SymExpr
impl SymExpr
pub(crate) fn select_storage_write( self, cx: &mut SymCx, write_key: Self, write_value: Self, base: Self, ) -> Self
pub(crate) fn storage_key_eq( &self, cx: &mut SymCx, write_key: &Self, ) -> SymBoolExpr
fn storage_base_eq(&self, cx: &mut SymCx, other: &Self) -> Option<SymBoolExpr>
fn storage_mapping_key(&self, cx: &mut SymCx) -> Option<StorageMappingKey>
fn storage_mapping_root_slot(&self, cx: &mut SymCx) -> Option<U256>
fn storage_mapping_key_bytes(&self, cx: &SymCx) -> Option<Arc<[Self]>>
fn storage_layout_key(&self, cx: &mut SymCx) -> Option<(Self, Self)>
Source§impl SymExpr
impl SymExpr
pub(in runtime) fn kind( &self, ) -> &SymExprKind
pub(in runtime) fn into_kind( self, ) -> SymExprKind
pub(in runtime) fn from_kind( cx: &mut SymCx, kind: SymExprKind, ) -> Self
pub(crate) fn zero(cx: &mut SymCx) -> Self
pub(crate) fn one(cx: &mut SymCx) -> Self
pub(crate) fn constant(cx: &mut SymCx, value: U256) -> Self
pub(crate) fn var(cx: &mut SymCx, name: &str) -> Self
pub(crate) fn get_var(cx: &mut SymCx, symbol: Symbol) -> Self
pub(crate) fn gas_left(cx: &mut SymCx, id: usize) -> Self
pub(crate) fn not(cx: &mut SymCx, value: Self) -> Self
pub(crate) fn binop( cx: &mut SymCx, binop: SymBinOp, left: Self, right: Self, ) -> Self
pub(crate) fn ternop( cx: &mut SymCx, ternop: SymTernOp, left: Self, right: Self, modulus: Self, ) -> Self
pub(crate) fn ite( cx: &mut SymCx, condition: SymBoolExpr, then_expr: Self, else_expr: Self, ) -> Self
pub(crate) fn bool_word(cx: &mut SymCx, value: SymBoolExpr) -> Self
fn self_div_expr_matches_zero_check(cond: &SymBoolExpr, expr: &Self) -> bool
pub(crate) fn keccak_symbol( cx: &mut SymCx, name: Symbol, len: Self, bytes: Vec<Self>, ) -> Self
pub(crate) fn hash_symbol( cx: &mut SymCx, name: Symbol, algorithm: &'static str, bytes: Vec<Self>, ) -> Self
fn or(cx: &mut SymCx, left: Self, right: Self) -> Self
fn commutative_binop( cx: &mut SymCx, op: SymBinOp, left: Self, right: Self, ) -> Self
pub(super) fn ordered_commutative_operands( left: Self, right: Self, ) -> (Self, Self)
fn complexity(&self) -> usize
fn and_const(cx: &mut SymCx, expr: Self, mask: U256) -> Self
fn shr_const(cx: &mut SymCx, expr: Self, shift: U256) -> Self
fn rebuild_from_or_terms(left: &Self, right: &Self) -> Option<Self>
pub(in runtime) fn push_or_terms<'a>( &'a self, terms: &mut Vec<&'a Self>, )
fn rebuild_from_extracted_byte_terms(terms: &[&Self]) -> Option<Self>
fn extracted_shifted_byte_term(&self) -> Option<(Self, usize)>
fn extracted_unshifted_byte_source(&self, index: usize) -> Option<Self>
fn rebuild_from_shifted_word_fragments(terms: &[&Self]) -> Option<Self>
fn low_word_fragment(&self) -> Option<(Self, usize)>
fn shifted_high_word_fragment(&self) -> Option<(Self, usize)>
fn shifted_low_fragment_source(&self) -> Option<(Self, usize, usize)>
fn shifted_low_fragment_source_with_mask( value: &Self, mask: U256, ) -> Option<(Self, usize, usize)>
pub(crate) fn low_byte(self, cx: &mut SymCx) -> Self
pub(crate) fn into_byte_exprs(self, cx: &mut SymCx) -> Vec<Self>
pub(crate) fn into_bytes(self, cx: &mut SymCx) -> SymBytes
pub(crate) fn from_bytes( cx: &mut SymCx, bytes: impl IntoIterator<Item = Self>, ) -> Self
pub(crate) fn as_const(&self) -> Option<U256>
pub(crate) fn eval(&self) -> Option<U256>
pub(crate) fn eval_model<M: SymbolicModelLookup + ?Sized>( &self, model: &M, ) -> Result<U256, SymbolicError>
pub(crate) fn eval_model_if_complete<M: SymbolicModelLookup + ?Sized>( &self, model: &M, ) -> Result<Option<U256>, SymbolicError>
pub(crate) fn assign_model_value( &self, model: &mut HashMap<Symbol, U256>, value: U256, ) -> bool
pub(crate) fn bool_word_condition(&self) -> Option<SymBoolExpr>
fn bool_word_condition_from_parts( condition: &SymBoolExpr, then_expr: &Self, else_expr: &Self, ) -> Option<SymBoolExpr>
pub(crate) fn truth(&self) -> Option<bool>
pub(crate) fn into_zero_bool(self, cx: &mut SymCx) -> SymBoolExpr
pub(crate) fn nonzero_bool(self, cx: &mut SymCx) -> SymBoolExpr
pub(crate) fn as_const_or( &self, reason: &'static str, ) -> Result<U256, SymbolicError>
pub(crate) fn as_usize_or( &self, reason: &'static str, ) -> Result<usize, SymbolicError>
pub(crate) fn contains_keccak(&self) -> bool
pub(crate) fn contains_gasleft(&self) -> bool
pub(crate) fn contains_udiv(&self) -> bool
pub(crate) fn contains_ite(&self) -> bool
pub(in runtime) fn udiv_operands( &self, ) -> Option<(&Self, &Self)>
pub(crate) fn collect_eval_vars(&self, vars: &mut IndexSet<Symbol>)
pub(crate) fn known_byte(&self, index: usize) -> Option<u8>
pub(crate) fn known_word(&self) -> Option<U256>
pub(crate) fn unsigned_bits(&self) -> usize
pub(crate) fn extracted_byte(&self, cx: &mut SymCx, index: usize) -> Self
pub(crate) fn extracted_byte_source(&self, index: usize) -> Option<Self>
pub(crate) fn strip_low_byte_mask(&self) -> &Self
pub(crate) fn byte_term(&self, cx: &mut SymCx, index: usize) -> Option<Self>
fn binary_byte_term( cx: &mut SymCx, left: &Self, right: &Self, index: usize, op: SymBinOp, identity: impl Fn(u8) -> bool, absorbing: impl Fn(u8) -> bool, ) -> Option<Self>
pub(crate) fn byte_const(&self) -> Option<u8>
pub(crate) fn equality_forces_const( &self, value: U256, expr: &Self, context: &[SymBoolExpr], ) -> Option<U256>
fn equality_forces_const_inner( &self, value: U256, expr: &Self, context: &[SymBoolExpr], ) -> Option<U256>
pub(crate) fn nonzero_forces_const( &self, target: &Self, context: &[SymBoolExpr], ) -> Option<U256>
pub(crate) fn is_raw_gasleft(&self) -> bool
pub(crate) fn add_const(cx: &mut SymCx, expr: Self, value: U256) -> Self
Sourcepub(crate) fn visit<B>(
&self,
visitor: &mut impl FnMut(&Self) -> ControlFlow<B>,
) -> ControlFlow<B>
pub(crate) fn visit<B>( &self, visitor: &mut impl FnMut(&Self) -> ControlFlow<B>, ) -> ControlFlow<B>
Visits this expression and all child expressions.
pub(crate) fn visit_bool(&self, visitor: impl FnMut(&Self) -> bool) -> bool
pub(crate) fn fold( self, cx: &mut SymCx, folder: &mut impl FnMut(&mut SymCx, Self) -> Self, ) -> Self
pub(super) fn write_smt(&self, cx: &SymCx, out: &mut String)
Source§impl SymExpr
impl SymExpr
fn add_cannot_overflow_256(&self, right: &Self) -> bool
fn word_bool_always_true(&self, cx: &mut SymCx) -> bool
Source§impl SymExpr
impl SymExpr
fn normalized_bool_word_condition(&self, cx: &mut SymCx) -> Option<SymBoolExpr>
fn add_overflow_check(&self, right: &Self) -> bool
fn add_with_operand<'a>( &'a self, operand: &Self, ) -> Option<(&'a Self, &'a Self)>
fn normalize_eq_zero_for_solver(&self, cx: &mut SymCx) -> Option<SymBoolExpr>
fn normalize_ne_zero_for_solver(&self, cx: &mut SymCx) -> Option<SymBoolExpr>
fn udiv_zero_condition( cx: &mut SymCx, numerator: &Self, denominator: &Self, ) -> SymBoolExpr
fn udiv_nonzero_condition( cx: &mut SymCx, numerator: &Self, denominator: &Self, ) -> SymBoolExpr
Trait Implementations§
impl Eq for SymExpr
impl StructuralPartialEq for SymExpr
Auto Trait Implementations§
impl Freeze for SymExpr
impl RefUnwindSafe for SymExpr
impl Send for SymExpr
impl Sync for SymExpr
impl Unpin for SymExpr
impl UnsafeUnpin for SymExpr
impl UnwindSafe for SymExpr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
§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
§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
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<B> IntoBlock<B> for B
impl<B> IntoBlock<B> for B
§fn into_block(self) -> B
fn into_block(self) -> B
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> 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<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
fn to_owned_equivalent(&self) -> <Q as ToOwned>::Owned
§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: 8 bytes