pub struct BRIDGE_CONTRACTInstance<T, P, N = Ethereum> {
address: Address,
provider: P,
_network_transport: PhantomData<(N, T)>,
}Expand description
A BRIDGE_CONTRACT instance.
Contains type-safe methods for interacting with an on-chain instance of the
BRIDGE_CONTRACT contract located at a given address, using a given
provider P.
If the contract bytecode is available (see the sol!
documentation on how to provide it), the deploy and deploy_builder methods can
be used to deploy a new instance of the contract.
See the module-level documentation for all the available methods.
Fields§
§address: Address§provider: P§_network_transport: PhantomData<(N, T)>Implementations§
Source§impl<T: Transport + Clone, P: Provider<T, N>, N: Network> BRIDGE_CONTRACTInstance<T, P, N>
Instantiation and getters/setters.
impl<T: Transport + Clone, P: Provider<T, N>, N: Network> BRIDGE_CONTRACTInstance<T, P, N>
Instantiation and getters/setters.
Sourcepub const fn new(address: Address, provider: P) -> Self
pub const fn new(address: Address, provider: P) -> Self
Creates a new wrapper around an on-chain BRIDGE_CONTRACT contract instance.
See the wrapper’s documentation for more details.
Sourcepub async fn deploy(provider: P) -> Result<BRIDGE_CONTRACTInstance<T, P, N>>
pub async fn deploy(provider: P) -> Result<BRIDGE_CONTRACTInstance<T, P, N>>
Deploys this contract using the given provider and constructor arguments, if any.
Returns a new instance of the contract, if the deployment was successful.
For more fine-grained control over the deployment process, use deploy_builder instead.
Sourcepub fn deploy_builder(provider: P) -> RawCallBuilder<T, P, N>
pub fn deploy_builder(provider: P) -> RawCallBuilder<T, P, N>
Creates a RawCallBuilder for deploying this contract using the given provider
and constructor arguments, if any.
This is a simple wrapper around creating a RawCallBuilder with the data set to
the bytecode concatenated with the constructor’s ABI-encoded arguments.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<T, P: Clone, N> BRIDGE_CONTRACTInstance<T, &P, N>
impl<T, P: Clone, N> BRIDGE_CONTRACTInstance<T, &P, N>
Sourcepub fn with_cloned_provider(self) -> BRIDGE_CONTRACTInstance<T, P, N>
pub fn with_cloned_provider(self) -> BRIDGE_CONTRACTInstance<T, P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<T: Transport + Clone, P: Provider<T, N>, N: Network> BRIDGE_CONTRACTInstance<T, P, N>
Function calls.
impl<T: Transport + Clone, P: Provider<T, N>, N: Network> BRIDGE_CONTRACTInstance<T, P, N>
Function calls.
Sourcepub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<T, &P, C, N>
pub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<T, &P, C, N>
Creates a new call builder using this contract instance’s provider and address.
Note that the call can be any function call, not just those defined in this contract. Prefer using the other methods for building type-safe contract calls.
Sourcepub fn CODESEP_POS(&self) -> SolCallBuilder<T, &P, CODESEP_POSCall, N>
pub fn CODESEP_POS(&self) -> SolCallBuilder<T, &P, CODESEP_POSCall, N>
Creates a new call builder for the [CODESEP_POS] function.
Sourcepub fn EPOCH(&self) -> SolCallBuilder<T, &P, EPOCHCall, N>
pub fn EPOCH(&self) -> SolCallBuilder<T, &P, EPOCHCall, N>
Creates a new call builder for the [EPOCH] function.
Sourcepub fn INPUT_INDEX(&self) -> SolCallBuilder<T, &P, INPUT_INDEXCall, N>
pub fn INPUT_INDEX(&self) -> SolCallBuilder<T, &P, INPUT_INDEXCall, N>
Creates a new call builder for the [INPUT_INDEX] function.
Sourcepub fn KEY_VERSION(&self) -> SolCallBuilder<T, &P, KEY_VERSIONCall, N>
pub fn KEY_VERSION(&self) -> SolCallBuilder<T, &P, KEY_VERSIONCall, N>
Creates a new call builder for the [KEY_VERSION] function.
Sourcepub fn LIGHT_CLIENT(&self) -> SolCallBuilder<T, &P, LIGHT_CLIENTCall, N>
pub fn LIGHT_CLIENT(&self) -> SolCallBuilder<T, &P, LIGHT_CLIENTCall, N>
Creates a new call builder for the [LIGHT_CLIENT] function.
Sourcepub fn SCHNORR_VERIFIER_PRECOMPILE(
&self,
) -> SolCallBuilder<T, &P, SCHNORR_VERIFIER_PRECOMPILECall, N>
pub fn SCHNORR_VERIFIER_PRECOMPILE( &self, ) -> SolCallBuilder<T, &P, SCHNORR_VERIFIER_PRECOMPILECall, N>
Creates a new call builder for the [SCHNORR_VERIFIER_PRECOMPILE] function.
Sourcepub fn SIGHASH_ALL_HASH_TYPE(
&self,
) -> SolCallBuilder<T, &P, SIGHASH_ALL_HASH_TYPECall, N>
pub fn SIGHASH_ALL_HASH_TYPE( &self, ) -> SolCallBuilder<T, &P, SIGHASH_ALL_HASH_TYPECall, N>
Creates a new call builder for the [SIGHASH_ALL_HASH_TYPE] function.
Sourcepub fn SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPE(
&self,
) -> SolCallBuilder<T, &P, SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPECall, N>
pub fn SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPE( &self, ) -> SolCallBuilder<T, &P, SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPECall, N>
Creates a new call builder for the [SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPE] function.
Sourcepub fn SPEND_TYPE_EXT(&self) -> SolCallBuilder<T, &P, SPEND_TYPE_EXTCall, N>
pub fn SPEND_TYPE_EXT(&self) -> SolCallBuilder<T, &P, SPEND_TYPE_EXTCall, N>
Creates a new call builder for the [SPEND_TYPE_EXT] function.
Sourcepub fn SPEND_TYPE_NO_EXT(
&self,
) -> SolCallBuilder<T, &P, SPEND_TYPE_NO_EXTCall, N>
pub fn SPEND_TYPE_NO_EXT( &self, ) -> SolCallBuilder<T, &P, SPEND_TYPE_NO_EXTCall, N>
Creates a new call builder for the [SPEND_TYPE_NO_EXT] function.
Sourcepub fn SYSTEM_CALLER(&self) -> SolCallBuilder<T, &P, SYSTEM_CALLERCall, N>
pub fn SYSTEM_CALLER(&self) -> SolCallBuilder<T, &P, SYSTEM_CALLERCall, N>
Creates a new call builder for the [SYSTEM_CALLER] function.
Sourcepub fn acceptOwnership(&self) -> SolCallBuilder<T, &P, acceptOwnershipCall, N>
pub fn acceptOwnership(&self) -> SolCallBuilder<T, &P, acceptOwnershipCall, N>
Creates a new call builder for the [acceptOwnership] function.
Sourcepub fn batchWithdraw(
&self,
txIds: Vec<FixedBytes<32>>,
outputIds: Vec<FixedBytes<4>>,
) -> SolCallBuilder<T, &P, batchWithdrawCall, N>
pub fn batchWithdraw( &self, txIds: Vec<FixedBytes<32>>, outputIds: Vec<FixedBytes<4>>, ) -> SolCallBuilder<T, &P, batchWithdrawCall, N>
Creates a new call builder for the [batchWithdraw] function.
Sourcepub fn deposit(
&self,
moveTx: <Transaction as SolType>::RustType,
proof: <MerkleProof as SolType>::RustType,
shaScriptPubkeys: FixedBytes<32>,
) -> SolCallBuilder<T, &P, depositCall, N>
pub fn deposit( &self, moveTx: <Transaction as SolType>::RustType, proof: <MerkleProof as SolType>::RustType, shaScriptPubkeys: FixedBytes<32>, ) -> SolCallBuilder<T, &P, depositCall, N>
Creates a new call builder for the [deposit] function.
Sourcepub fn depositAmount(&self) -> SolCallBuilder<T, &P, depositAmountCall, N>
pub fn depositAmount(&self) -> SolCallBuilder<T, &P, depositAmountCall, N>
Creates a new call builder for the [depositAmount] function.
Sourcepub fn depositPrefix(&self) -> SolCallBuilder<T, &P, depositPrefixCall, N>
pub fn depositPrefix(&self) -> SolCallBuilder<T, &P, depositPrefixCall, N>
Creates a new call builder for the [depositPrefix] function.
Sourcepub fn depositSuffix(&self) -> SolCallBuilder<T, &P, depositSuffixCall, N>
pub fn depositSuffix(&self) -> SolCallBuilder<T, &P, depositSuffixCall, N>
Creates a new call builder for the [depositSuffix] function.
Sourcepub fn depositTxIds(
&self,
_0: U256,
) -> SolCallBuilder<T, &P, depositTxIdsCall, N>
pub fn depositTxIds( &self, _0: U256, ) -> SolCallBuilder<T, &P, depositTxIdsCall, N>
Creates a new call builder for the [depositTxIds] function.
Sourcepub fn failedDepositVault(
&self,
) -> SolCallBuilder<T, &P, failedDepositVaultCall, N>
pub fn failedDepositVault( &self, ) -> SolCallBuilder<T, &P, failedDepositVaultCall, N>
Creates a new call builder for the [failedDepositVault] function.
Sourcepub fn getAggregatedKey(&self) -> SolCallBuilder<T, &P, getAggregatedKeyCall, N>
pub fn getAggregatedKey(&self) -> SolCallBuilder<T, &P, getAggregatedKeyCall, N>
Creates a new call builder for the [getAggregatedKey] function.
Sourcepub fn getWithdrawalCount(
&self,
) -> SolCallBuilder<T, &P, getWithdrawalCountCall, N>
pub fn getWithdrawalCount( &self, ) -> SolCallBuilder<T, &P, getWithdrawalCountCall, N>
Creates a new call builder for the [getWithdrawalCount] function.
Sourcepub fn initialize(
&self,
_depositPrefix: Bytes,
_depositSuffix: Bytes,
_depositAmount: U256,
) -> SolCallBuilder<T, &P, initializeCall, N>
pub fn initialize( &self, _depositPrefix: Bytes, _depositSuffix: Bytes, _depositAmount: U256, ) -> SolCallBuilder<T, &P, initializeCall, N>
Creates a new call builder for the [initialize] function.
Sourcepub fn initialized(&self) -> SolCallBuilder<T, &P, initializedCall, N>
pub fn initialized(&self) -> SolCallBuilder<T, &P, initializedCall, N>
Creates a new call builder for the [initialized] function.
Sourcepub fn operator(&self) -> SolCallBuilder<T, &P, operatorCall, N>
pub fn operator(&self) -> SolCallBuilder<T, &P, operatorCall, N>
Creates a new call builder for the [operator] function.
Sourcepub fn owner(&self) -> SolCallBuilder<T, &P, ownerCall, N>
pub fn owner(&self) -> SolCallBuilder<T, &P, ownerCall, N>
Creates a new call builder for the [owner] function.
Sourcepub fn pendingOwner(&self) -> SolCallBuilder<T, &P, pendingOwnerCall, N>
pub fn pendingOwner(&self) -> SolCallBuilder<T, &P, pendingOwnerCall, N>
Creates a new call builder for the [pendingOwner] function.
Sourcepub fn processedTxIds(
&self,
_0: FixedBytes<32>,
) -> SolCallBuilder<T, &P, processedTxIdsCall, N>
pub fn processedTxIds( &self, _0: FixedBytes<32>, ) -> SolCallBuilder<T, &P, processedTxIdsCall, N>
Creates a new call builder for the [processedTxIds] function.
Sourcepub fn renounceOwnership(
&self,
) -> SolCallBuilder<T, &P, renounceOwnershipCall, N>
pub fn renounceOwnership( &self, ) -> SolCallBuilder<T, &P, renounceOwnershipCall, N>
Creates a new call builder for the [renounceOwnership] function.
Sourcepub fn replaceDeposit(
&self,
replaceTx: <Transaction as SolType>::RustType,
proof: <MerkleProof as SolType>::RustType,
idToReplace: U256,
shaScriptPubkeys: FixedBytes<32>,
) -> SolCallBuilder<T, &P, replaceDepositCall, N>
pub fn replaceDeposit( &self, replaceTx: <Transaction as SolType>::RustType, proof: <MerkleProof as SolType>::RustType, idToReplace: U256, shaScriptPubkeys: FixedBytes<32>, ) -> SolCallBuilder<T, &P, replaceDepositCall, N>
Creates a new call builder for the [replaceDeposit] function.
Sourcepub fn replacePrefix(&self) -> SolCallBuilder<T, &P, replacePrefixCall, N>
pub fn replacePrefix(&self) -> SolCallBuilder<T, &P, replacePrefixCall, N>
Creates a new call builder for the [replacePrefix] function.
Sourcepub fn replaceSuffix(&self) -> SolCallBuilder<T, &P, replaceSuffixCall, N>
pub fn replaceSuffix(&self) -> SolCallBuilder<T, &P, replaceSuffixCall, N>
Creates a new call builder for the [replaceSuffix] function.
Sourcepub fn safeWithdraw(
&self,
prepareTx: <Transaction as SolType>::RustType,
prepareProof: <MerkleProof as SolType>::RustType,
payoutTx: <Transaction as SolType>::RustType,
blockHeader: Bytes,
scriptPubKey: Bytes,
) -> SolCallBuilder<T, &P, safeWithdrawCall, N>
pub fn safeWithdraw( &self, prepareTx: <Transaction as SolType>::RustType, prepareProof: <MerkleProof as SolType>::RustType, payoutTx: <Transaction as SolType>::RustType, blockHeader: Bytes, scriptPubKey: Bytes, ) -> SolCallBuilder<T, &P, safeWithdrawCall, N>
Creates a new call builder for the [safeWithdraw] function.
Sourcepub fn setDepositScript(
&self,
_depositPrefix: Bytes,
_depositSuffix: Bytes,
) -> SolCallBuilder<T, &P, setDepositScriptCall, N>
pub fn setDepositScript( &self, _depositPrefix: Bytes, _depositSuffix: Bytes, ) -> SolCallBuilder<T, &P, setDepositScriptCall, N>
Creates a new call builder for the [setDepositScript] function.
Sourcepub fn setFailedDepositVault(
&self,
_failedDepositVault: Address,
) -> SolCallBuilder<T, &P, setFailedDepositVaultCall, N>
pub fn setFailedDepositVault( &self, _failedDepositVault: Address, ) -> SolCallBuilder<T, &P, setFailedDepositVaultCall, N>
Creates a new call builder for the [setFailedDepositVault] function.
Sourcepub fn setOperator(
&self,
_operator: Address,
) -> SolCallBuilder<T, &P, setOperatorCall, N>
pub fn setOperator( &self, _operator: Address, ) -> SolCallBuilder<T, &P, setOperatorCall, N>
Creates a new call builder for the [setOperator] function.
Sourcepub fn setReplaceScript(
&self,
_replacePrefix: Bytes,
_replaceSuffix: Bytes,
) -> SolCallBuilder<T, &P, setReplaceScriptCall, N>
pub fn setReplaceScript( &self, _replacePrefix: Bytes, _replaceSuffix: Bytes, ) -> SolCallBuilder<T, &P, setReplaceScriptCall, N>
Creates a new call builder for the [setReplaceScript] function.
Sourcepub fn transferOwnership(
&self,
newOwner: Address,
) -> SolCallBuilder<T, &P, transferOwnershipCall, N>
pub fn transferOwnership( &self, newOwner: Address, ) -> SolCallBuilder<T, &P, transferOwnershipCall, N>
Creates a new call builder for the [transferOwnership] function.
Sourcepub fn withdraw(
&self,
txId: FixedBytes<32>,
outputId: FixedBytes<4>,
) -> SolCallBuilder<T, &P, withdrawCall, N>
pub fn withdraw( &self, txId: FixedBytes<32>, outputId: FixedBytes<4>, ) -> SolCallBuilder<T, &P, withdrawCall, N>
Creates a new call builder for the [withdraw] function.
Sourcepub fn withdrawalUTXOs(
&self,
_0: U256,
) -> SolCallBuilder<T, &P, withdrawalUTXOsCall, N>
pub fn withdrawalUTXOs( &self, _0: U256, ) -> SolCallBuilder<T, &P, withdrawalUTXOsCall, N>
Creates a new call builder for the [withdrawalUTXOs] function.
Source§impl<T: Transport + Clone, P: Provider<T, N>, N: Network> BRIDGE_CONTRACTInstance<T, P, N>
Event filters.
impl<T: Transport + Clone, P: Provider<T, N>, N: Network> BRIDGE_CONTRACTInstance<T, P, N>
Event filters.
Sourcepub fn event_filter<E: SolEvent>(&self) -> Event<T, &P, E, N>
pub fn event_filter<E: SolEvent>(&self) -> Event<T, &P, E, N>
Creates a new event filter using this contract instance’s provider and address.
Note that the type can be any event, not just those defined in this contract. Prefer using the other methods for building type-safe event filters.
Sourcepub fn Deposit_filter(&self) -> Event<T, &P, Deposit, N>
pub fn Deposit_filter(&self) -> Event<T, &P, Deposit, N>
Creates a new event filter for the Deposit event.
Sourcepub fn DepositReplaced_filter(&self) -> Event<T, &P, DepositReplaced, N>
pub fn DepositReplaced_filter(&self) -> Event<T, &P, DepositReplaced, N>
Creates a new event filter for the DepositReplaced event.
Sourcepub fn DepositScriptUpdate_filter(&self) -> Event<T, &P, DepositScriptUpdate, N>
pub fn DepositScriptUpdate_filter(&self) -> Event<T, &P, DepositScriptUpdate, N>
Creates a new event filter for the DepositScriptUpdate event.
Sourcepub fn DepositTransferFailed_filter(
&self,
) -> Event<T, &P, DepositTransferFailed, N>
pub fn DepositTransferFailed_filter( &self, ) -> Event<T, &P, DepositTransferFailed, N>
Creates a new event filter for the DepositTransferFailed event.
Sourcepub fn FailedDepositVaultUpdated_filter(
&self,
) -> Event<T, &P, FailedDepositVaultUpdated, N>
pub fn FailedDepositVaultUpdated_filter( &self, ) -> Event<T, &P, FailedDepositVaultUpdated, N>
Creates a new event filter for the FailedDepositVaultUpdated event.
Sourcepub fn Initialized_filter(&self) -> Event<T, &P, Initialized, N>
pub fn Initialized_filter(&self) -> Event<T, &P, Initialized, N>
Creates a new event filter for the Initialized event.
Sourcepub fn OperatorUpdated_filter(&self) -> Event<T, &P, OperatorUpdated, N>
pub fn OperatorUpdated_filter(&self) -> Event<T, &P, OperatorUpdated, N>
Creates a new event filter for the OperatorUpdated event.
Sourcepub fn OwnershipTransferStarted_filter(
&self,
) -> Event<T, &P, OwnershipTransferStarted, N>
pub fn OwnershipTransferStarted_filter( &self, ) -> Event<T, &P, OwnershipTransferStarted, N>
Creates a new event filter for the OwnershipTransferStarted event.
Sourcepub fn OwnershipTransferred_filter(
&self,
) -> Event<T, &P, OwnershipTransferred, N>
pub fn OwnershipTransferred_filter( &self, ) -> Event<T, &P, OwnershipTransferred, N>
Creates a new event filter for the OwnershipTransferred event.
Sourcepub fn ReplaceScriptUpdate_filter(&self) -> Event<T, &P, ReplaceScriptUpdate, N>
pub fn ReplaceScriptUpdate_filter(&self) -> Event<T, &P, ReplaceScriptUpdate, N>
Creates a new event filter for the ReplaceScriptUpdate event.
Sourcepub fn SafeWithdrawal_filter(&self) -> Event<T, &P, SafeWithdrawal, N>
pub fn SafeWithdrawal_filter(&self) -> Event<T, &P, SafeWithdrawal, N>
Creates a new event filter for the SafeWithdrawal event.
Sourcepub fn Withdrawal_filter(&self) -> Event<T, &P, Withdrawal, N>
pub fn Withdrawal_filter(&self) -> Event<T, &P, Withdrawal, N>
Creates a new event filter for the Withdrawal event.
Trait Implementations§
Auto Trait Implementations§
impl<T, P, N> Freeze for BRIDGE_CONTRACTInstance<T, P, N>where
P: Freeze,
impl<T, P, N> RefUnwindSafe for BRIDGE_CONTRACTInstance<T, P, N>
impl<T, P, N> Send for BRIDGE_CONTRACTInstance<T, P, N>
impl<T, P, N> Sync for BRIDGE_CONTRACTInstance<T, P, N>
impl<T, P, N> Unpin for BRIDGE_CONTRACTInstance<T, P, N>
impl<T, P, N> UnwindSafe for BRIDGE_CONTRACTInstance<T, P, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
fn exact_into(self) -> U
§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<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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
§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, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
§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.