Struct brontes_classifier::ProtocolClassifier

source ·
pub struct ProtocolClassifier(pub UniswapV2SwapCall, pub UniswapV2MintCall, pub UniswapV2BurnCall, pub SushiSwapV2SwapCall, pub SushiSwapV2MintCall, pub SushiSwapV2BurnCall, pub PancakeSwapV2SwapCall, pub PancakeSwapV2MintCall, pub PancakeSwapV2BurnCall, pub UniswapV3SwapCall, pub UniswapV3MintCall, pub UniswapV3BurnCall, pub UniswapV3CollectCall, pub SushiSwapV3SwapCall, pub SushiSwapV3MintCall, pub SushiSwapV3BurnCall, pub SushiSwapV3CollectCall, pub PancakeSwapV3SwapCall, pub PancakeSwapV3MintCall, pub PancakeSwapV3BurnCall, pub PancakeSwapV3CollectCall, pub UniswapXExecuteCall, pub UniswapXExecuteBatchCall, pub UniswapXExecuteBatchWithCallbackCall, pub UniswapXExecuteWithCallbackCall, pub CurveBasePool2ExchangeCall, pub CurveBasePool3ExchangeCall, pub CurveBasePool4ExchangeCall, pub CurveBasePool2Add_liquidityCall, pub CurveBasePool3Add_liquidityCall, pub CurveBasePool4Add_liquidityCall, pub CurveBasePool2Remove_liquidityCall, pub CurveBasePool2Remove_liquidity_imbalanceCall, pub CurveBasePool3Remove_liquidityCall, pub CurveBasePool3Remove_liquidity_imbalanceCall, pub CurveBasePool3Remove_liquidity_one_coinCall, pub CurveBasePool4Remove_liquidityCall, pub CurveBasePool4Remove_liquidity_imbalanceCall, pub CurveV1MetapoolImplExchange_0Call, pub CurveV1MetapoolImplExchange_1Call, pub CurveV1MetapoolImplExchange_underlying_0Call, pub CurveV1MetapoolImplExchange_underlying_1Call, pub CurveV1MetapoolImplAdd_liquidity_0Call, pub CurveV1MetapoolImplAdd_liquidity_1Call, pub CurveV1MetapoolImplRemove_liquidity_0Call, pub CurveV1MetapoolImplRemove_liquidity_1Call, pub CurveV1MetapoolImplRemove_liquidity_imbalance_0Call, pub CurveV1MetapoolImplRemove_liquidity_imbalance_1Call, pub CurveV1MetapoolImplRemove_liquidity_one_coin_0Call, pub CurveV1MetapoolImplRemove_liquidity_one_coin_1Call, pub CurveV2MetapoolImplExchange_0Call, pub CurveV2MetapoolImplExchange_1Call, pub CurveV2MetapoolImplAdd_liquidity_0Call, pub CurveV2MetapoolImplAdd_liquidity_1Call, pub CurveV2MetapoolImplExchange_underlying_0Call, pub CurveV2MetapoolImplExchange_underlying_1Call, pub CurveV2MetapoolImplRemove_liquidity_0Call, pub CurveV2MetapoolImplRemove_liquidity_1Call, pub CurveV2MetapoolImplRemove_liquidity_imbalance_0Call, pub CurveV2MetapoolImplRemove_liquidity_imbalance_1Call, pub CurveV2MetapoolImplRemove_liquidity_one_coin_0Call, pub CurveV2MetapoolImplRemove_liquidity_one_coin_1Call, pub CurveV2PlainPoolImplExchange_0Call, pub CurveV2PlainPoolImplExchange_1Call, pub CurveV2PlainPoolImplAdd_liquidity_0Call, pub CurveV2PlainPoolImplAdd_liquidity_1Call, pub CurveV2PlainPoolImplRemove_liquidity_0Call, pub CurveV2PlainPoolImplRemove_liquidity_1Call, pub CurveV2PlainPoolImplRemove_liquidity_imbalance_0Call, pub CurveV2PlainPoolImplRemove_liquidity_imbalance_1Call, pub CurveV2PlainPoolImplRemove_liquidity_one_coin_0Call, pub CurveV2PlainPoolImplRemove_liquidity_one_coin_1Call, pub MakerPSMBuyGemCall, pub MakerPSMSellGemCall, pub MakerDssFlashFlashLoanCall, pub AaveV2LiquidationCallCall, pub AaveV3LiquidationCallCall, pub AaveV2FlashLoanCall, pub AaveV3FlashLoanCall, pub AaveV3FlashLoanSimpleCall, pub BalancerV1SwapExactAmountInCall, pub BalancerV1SwapExactAmountOutCall, pub BalancerV1BindCall, pub BalancerV2OnSwap_0Call, pub BalancerV2OnSwap_1Call, pub BalancerV2FlashLoanCall, pub BalancerV2JoinPoolCall, pub BalancerV2ExitPoolCall, pub BalancerV2RegisterTokensCall, pub CompoundV2LiquidateBorrowCall, pub CompoundV2Initialize_0Call, pub CompoundV2Initialize_1Call, pub OneInchV5SwapCall, pub OneInchV5ClipperSwapCall, pub OneInchV5ClipperSwapToCall, pub OneInchV5ClipperSwapToWithPermitCall, pub OneInchV5UnoswapToCall, pub OneInchV5UnoswapToWithPermitCall, pub OneInchV5UniswapV3SwapToCall, pub OneInchV5UniswapV3SwapToWithPermitCall, pub OneInchFusionSettleOrdersCall, pub ClipperExchangeSwapCall, pub ClipperExchangeSellEthForTokenCall, pub ClipperExchangeSellTokenForEthCall, pub ClipperExchangeTransmitAndSwapCall, pub ClipperExchangeTransmitAndSellTokenForEthCall, pub CowswapSettleCall, pub CowswapSwapCall, pub ZeroXSellToUniswapCall, pub ZeroXSellEthForTokenToUniswapV3Call, pub ZeroXSellTokenForEthToUniswapV3Call, pub ZeroXSellTokenForTokenToUniswapV3Call, pub ZeroXTransformERC20Call, pub ZeroXSellToPancakeSwapCall, pub ZeroXFillOtcOrderCall, pub ZeroXFillOtcOrderForEthCall, pub ZeroXFillOtcOrderWithEthCall, pub ZeroXFillTakerSignedOtcOrderCall, pub ZeroXFillTakerSignedOtcOrderForEthCall, pub ZeroXBatchFillTakerSignedOtcOrdersCall, pub ZeroXSellToLiquidityProviderCall, pub ZeroXMultiplexBatchSellEthForTokenCall, pub ZeroXMultiplexBatchSellTokenForEthCall, pub ZeroXMultiplexBatchSellTokenForTokenCall, pub ZeroXMultiplexMultiHopSellEthForTokenCall, pub ZeroXMultiplexMultiHopSellTokenForEthCall, pub ZeroXMultiplexMultiHopSellTokenForTokenCall, pub ZeroXFillLimitOrderCall, pub ZeroXFillRfqOrderCall, pub ZeroXFillOrKillLimitOrderCall, pub ZeroXFillOrKillRfqOrderCall, pub DodoCreateDODOVendingMachineCall, pub DodoCreateDODOStablePoolCall, pub DodoInitDODOPrivatePoolCall, pub DodoBuySharesCall, pub DodoSellSharesCall, pub DodoSellBaseCall, pub DodoSellQuoteCall, pub DodoFlashLoanCall);

Tuple Fields§

§0: UniswapV2SwapCall§1: UniswapV2MintCall§2: UniswapV2BurnCall§3: SushiSwapV2SwapCall§4: SushiSwapV2MintCall§5: SushiSwapV2BurnCall§6: PancakeSwapV2SwapCall§7: PancakeSwapV2MintCall§8: PancakeSwapV2BurnCall§9: UniswapV3SwapCall§10: UniswapV3MintCall§11: UniswapV3BurnCall§12: UniswapV3CollectCall§13: SushiSwapV3SwapCall§14: SushiSwapV3MintCall§15: SushiSwapV3BurnCall§16: SushiSwapV3CollectCall§17: PancakeSwapV3SwapCall§18: PancakeSwapV3MintCall§19: PancakeSwapV3BurnCall§20: PancakeSwapV3CollectCall§21: UniswapXExecuteCall§22: UniswapXExecuteBatchCall§23: UniswapXExecuteBatchWithCallbackCall§24: UniswapXExecuteWithCallbackCall§25: CurveBasePool2ExchangeCall§26: CurveBasePool3ExchangeCall§27: CurveBasePool4ExchangeCall§28: CurveBasePool2Add_liquidityCall§29: CurveBasePool3Add_liquidityCall§30: CurveBasePool4Add_liquidityCall§31: CurveBasePool2Remove_liquidityCall§32: CurveBasePool2Remove_liquidity_imbalanceCall§33: CurveBasePool3Remove_liquidityCall§34: CurveBasePool3Remove_liquidity_imbalanceCall§35: CurveBasePool3Remove_liquidity_one_coinCall§36: CurveBasePool4Remove_liquidityCall§37: CurveBasePool4Remove_liquidity_imbalanceCall§38: CurveV1MetapoolImplExchange_0Call§39: CurveV1MetapoolImplExchange_1Call§40: CurveV1MetapoolImplExchange_underlying_0Call§41: CurveV1MetapoolImplExchange_underlying_1Call§42: CurveV1MetapoolImplAdd_liquidity_0Call§43: CurveV1MetapoolImplAdd_liquidity_1Call§44: CurveV1MetapoolImplRemove_liquidity_0Call§45: CurveV1MetapoolImplRemove_liquidity_1Call§46: CurveV1MetapoolImplRemove_liquidity_imbalance_0Call§47: CurveV1MetapoolImplRemove_liquidity_imbalance_1Call§48: CurveV1MetapoolImplRemove_liquidity_one_coin_0Call§49: CurveV1MetapoolImplRemove_liquidity_one_coin_1Call§50: CurveV2MetapoolImplExchange_0Call§51: CurveV2MetapoolImplExchange_1Call§52: CurveV2MetapoolImplAdd_liquidity_0Call§53: CurveV2MetapoolImplAdd_liquidity_1Call§54: CurveV2MetapoolImplExchange_underlying_0Call§55: CurveV2MetapoolImplExchange_underlying_1Call§56: CurveV2MetapoolImplRemove_liquidity_0Call§57: CurveV2MetapoolImplRemove_liquidity_1Call§58: CurveV2MetapoolImplRemove_liquidity_imbalance_0Call§59: CurveV2MetapoolImplRemove_liquidity_imbalance_1Call§60: CurveV2MetapoolImplRemove_liquidity_one_coin_0Call§61: CurveV2MetapoolImplRemove_liquidity_one_coin_1Call§62: CurveV2PlainPoolImplExchange_0Call§63: CurveV2PlainPoolImplExchange_1Call§64: CurveV2PlainPoolImplAdd_liquidity_0Call§65: CurveV2PlainPoolImplAdd_liquidity_1Call§66: CurveV2PlainPoolImplRemove_liquidity_0Call§67: CurveV2PlainPoolImplRemove_liquidity_1Call§68: CurveV2PlainPoolImplRemove_liquidity_imbalance_0Call§69: CurveV2PlainPoolImplRemove_liquidity_imbalance_1Call§70: CurveV2PlainPoolImplRemove_liquidity_one_coin_0Call§71: CurveV2PlainPoolImplRemove_liquidity_one_coin_1Call§72: MakerPSMBuyGemCall§73: MakerPSMSellGemCall§74: MakerDssFlashFlashLoanCall§75: AaveV2LiquidationCallCall§76: AaveV3LiquidationCallCall§77: AaveV2FlashLoanCall§78: AaveV3FlashLoanCall§79: AaveV3FlashLoanSimpleCall§80: BalancerV1SwapExactAmountInCall§81: BalancerV1SwapExactAmountOutCall§82: BalancerV1BindCall§83: BalancerV2OnSwap_0Call§84: BalancerV2OnSwap_1Call§85: BalancerV2FlashLoanCall§86: BalancerV2JoinPoolCall§87: BalancerV2ExitPoolCall§88: BalancerV2RegisterTokensCall§89: CompoundV2LiquidateBorrowCall§90: CompoundV2Initialize_0Call§91: CompoundV2Initialize_1Call§92: OneInchV5SwapCall§93: OneInchV5ClipperSwapCall§94: OneInchV5ClipperSwapToCall§95: OneInchV5ClipperSwapToWithPermitCall§96: OneInchV5UnoswapToCall§97: OneInchV5UnoswapToWithPermitCall§98: OneInchV5UniswapV3SwapToCall§99: OneInchV5UniswapV3SwapToWithPermitCall§100: OneInchFusionSettleOrdersCall§101: ClipperExchangeSwapCall§102: ClipperExchangeSellEthForTokenCall§103: ClipperExchangeSellTokenForEthCall§104: ClipperExchangeTransmitAndSwapCall§105: ClipperExchangeTransmitAndSellTokenForEthCall§106: CowswapSettleCall§107: CowswapSwapCall§108: ZeroXSellToUniswapCall§109: ZeroXSellEthForTokenToUniswapV3Call§110: ZeroXSellTokenForEthToUniswapV3Call§111: ZeroXSellTokenForTokenToUniswapV3Call§112: ZeroXTransformERC20Call§113: ZeroXSellToPancakeSwapCall§114: ZeroXFillOtcOrderCall§115: ZeroXFillOtcOrderForEthCall§116: ZeroXFillOtcOrderWithEthCall§117: ZeroXFillTakerSignedOtcOrderCall§118: ZeroXFillTakerSignedOtcOrderForEthCall§119: ZeroXBatchFillTakerSignedOtcOrdersCall§120: ZeroXSellToLiquidityProviderCall§121: ZeroXMultiplexBatchSellEthForTokenCall§122: ZeroXMultiplexBatchSellTokenForEthCall§123: ZeroXMultiplexBatchSellTokenForTokenCall§124: ZeroXMultiplexMultiHopSellEthForTokenCall§125: ZeroXMultiplexMultiHopSellTokenForEthCall§126: ZeroXMultiplexMultiHopSellTokenForTokenCall§127: ZeroXFillLimitOrderCall§128: ZeroXFillRfqOrderCall§129: ZeroXFillOrKillLimitOrderCall§130: ZeroXFillOrKillRfqOrderCall§131: DodoCreateDODOVendingMachineCall§132: DodoCreateDODOStablePoolCall§133: DodoInitDODOPrivatePoolCall§134: DodoBuySharesCall§135: DodoSellSharesCall§136: DodoSellBaseCall§137: DodoSellQuoteCall§138: DodoFlashLoanCall

Trait Implementations§

source§

impl ActionCollection for ProtocolClassifier

source§

fn dispatch<DB: LibmdbxReader + DBWriter>( &self, call_info: CallFrameInfo<'_>, db_tx: &DB, block: u64, tx_idx: u64, ) -> Option<(DexPriceMsg, Action)>

source§

impl Debug for ProtocolClassifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ProtocolClassifier

source§

fn default() -> ProtocolClassifier

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T, O> ActionComparison<O> for T
where T: SubordinateAction<O>, O: ActionCmp<T>,

source§

fn is_same_coverage(&self, other: &O) -> bool
where Self: Sized + ActionCmp<O> + Debug, O: ActionCmp<Self> + Debug,

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> ArchivePointee for T

§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
§

impl<T, U> ExactFrom<T> for U
where U: TryFrom<T>,

§

fn exact_from(value: T) -> U

§

impl<T, U> ExactInto<U> for T
where U: ExactFrom<T>,

§

fn exact_into(self) -> U

§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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> LayoutRaw for T

§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
§

impl<T, U> OverflowingInto<U> for T
where U: OverflowingFrom<T>,

§

fn overflowing_into(self) -> (U, bool)

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows 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) -> R
where R: 'a,

Mutably borrows 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
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows 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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows 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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Pointee for T

§

type Metadata = ()

The type for metadata in pointers and references to Self.
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T, U> RoundingInto<U> for T
where U: RoundingFrom<T>,

§

fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)

source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T, U> SaturatingInto<U> for T
where U: SaturatingFrom<T>,

§

fn saturating_into(self) -> U

source§

impl<T, O> SubordinateAction<O> for T
where O: ActionCmp<T>,

source§

fn is_subordinate(&self, other: &O) -> bool
where Self: Sized + Debug, O: ActionCmp<Self> + Debug,

checks to see if this action is subordinate to the other action.
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .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
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .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
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
§

impl<T> ToDebugString for T
where T: Debug,

§

fn to_debug_string(&self) -> String

Returns the String produced by Ts Debug implementation.

§Examples
use malachite_base::strings::ToDebugString;

assert_eq!([1, 2, 3].to_debug_string(), "[1, 2, 3]");
assert_eq!(
    [vec![2, 3], vec![], vec![4]].to_debug_string(),
    "[[2, 3], [], [4]]"
);
assert_eq!(Some(5).to_debug_string(), "Some(5)");
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T, U> WrappingInto<U> for T
where U: WrappingFrom<T>,

§

fn wrapping_into(self) -> U

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSend for T
where T: Send,

§

impl<T> MaybeSendSync for T

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: 0 bytes