Struct casper_execution_engine::core::runtime::Runtime [−][src]
Implementations
impl<'a, R> Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
pub fn new(
config: EngineConfig,
system_contract_cache: SystemContractCache,
memory: MemoryRef,
module: Module,
context: RuntimeContext<'a, R>
) -> Self
[src]
config: EngineConfig,
system_contract_cache: SystemContractCache,
memory: MemoryRef,
module: Module,
context: RuntimeContext<'a, R>
) -> Self
pub fn memory(&self) -> &MemoryRef
[src]
pub fn module(&self) -> &Module
[src]
pub fn context(&self) -> &RuntimeContext<'a, R>
[src]
pub fn protocol_data(&self) -> &ProtocolData
[src]
pub fn is_mint(&self, key: Key) -> bool
[src]
pub fn is_handle_payment(&self, key: Key) -> bool
[src]
pub fn is_auction(&self, key: Key) -> bool
[src]
pub fn call_host_mint(
&mut self,
protocol_version: ProtocolVersion,
entry_point_name: &str,
named_keys: &mut NamedKeys,
runtime_args: &RuntimeArgs,
extra_keys: &[Key]
) -> Result<CLValue, Error>
[src]
&mut self,
protocol_version: ProtocolVersion,
entry_point_name: &str,
named_keys: &mut NamedKeys,
runtime_args: &RuntimeArgs,
extra_keys: &[Key]
) -> Result<CLValue, Error>
pub fn call_host_handle_payment(
&mut self,
protocol_version: ProtocolVersion,
entry_point_name: &str,
named_keys: &mut NamedKeys,
runtime_args: &RuntimeArgs,
extra_keys: &[Key]
) -> Result<CLValue, Error>
[src]
&mut self,
protocol_version: ProtocolVersion,
entry_point_name: &str,
named_keys: &mut NamedKeys,
runtime_args: &RuntimeArgs,
extra_keys: &[Key]
) -> Result<CLValue, Error>
pub fn call_host_standard_payment(&mut self) -> Result<(), Error>
[src]
pub fn call_host_auction(
&mut self,
protocol_version: ProtocolVersion,
entry_point_name: &str,
named_keys: &mut NamedKeys,
runtime_args: &RuntimeArgs,
extra_keys: &[Key]
) -> Result<CLValue, Error>
[src]
&mut self,
protocol_version: ProtocolVersion,
entry_point_name: &str,
named_keys: &mut NamedKeys,
runtime_args: &RuntimeArgs,
extra_keys: &[Key]
) -> Result<CLValue, Error>
pub fn call_contract(
&mut self,
contract_hash: ContractHash,
entry_point_name: &str,
args: RuntimeArgs
) -> Result<CLValue, Error>
[src]
&mut self,
contract_hash: ContractHash,
entry_point_name: &str,
args: RuntimeArgs
) -> Result<CLValue, Error>
Calls contract living under a key
, with supplied args
.
pub fn call_versioned_contract(
&mut self,
contract_package_hash: ContractPackageHash,
contract_version: Option<ContractVersion>,
entry_point_name: String,
args: RuntimeArgs
) -> Result<CLValue, Error>
[src]
&mut self,
contract_package_hash: ContractPackageHash,
contract_version: Option<ContractVersion>,
entry_point_name: String,
args: RuntimeArgs
) -> Result<CLValue, Error>
Calls version
of the contract living at key
, invoking method
with
supplied args
. This function also checks the args conform with the
types given in the contract header.
pub fn take_host_buffer(&mut self) -> Option<CLValue>
[src]
If host_buffer set, clears the host_buffer and returns value, else None
Trait Implementations
impl<'a, R> AccountProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn get_main_purse(&self) -> Result<URef, Error>
[src]
impl<'a, R> AccountProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn get_main_purse(&self) -> Result<URef, ApiError>
[src]
impl<'a, R> Auction for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
pub fn get_era_validators(
&mut self
) -> Result<BTreeMap<u64, BTreeMap<PublicKey, U512>>, Error>
[src]
&mut self
) -> Result<BTreeMap<u64, BTreeMap<PublicKey, U512>>, Error>
pub fn read_seigniorage_recipients(
&mut self
) -> Result<BTreeMap<PublicKey, SeigniorageRecipient>, Error>
[src]
&mut self
) -> Result<BTreeMap<PublicKey, SeigniorageRecipient>, Error>
pub fn add_bid(
&mut self,
public_key: PublicKey,
delegation_rate: u8,
amount: U512
) -> Result<U512, Error>
[src]
&mut self,
public_key: PublicKey,
delegation_rate: u8,
amount: U512
) -> Result<U512, Error>
pub fn withdraw_bid(
&mut self,
public_key: PublicKey,
amount: U512
) -> Result<U512, Error>
[src]
&mut self,
public_key: PublicKey,
amount: U512
) -> Result<U512, Error>
pub fn delegate(
&mut self,
delegator_public_key: PublicKey,
validator_public_key: PublicKey,
amount: U512
) -> Result<U512, Error>
[src]
&mut self,
delegator_public_key: PublicKey,
validator_public_key: PublicKey,
amount: U512
) -> Result<U512, Error>
pub fn undelegate(
&mut self,
delegator_public_key: PublicKey,
validator_public_key: PublicKey,
amount: U512
) -> Result<U512, Error>
[src]
&mut self,
delegator_public_key: PublicKey,
validator_public_key: PublicKey,
amount: U512
) -> Result<U512, Error>
pub fn slash(
&mut self,
validator_public_keys: Vec<PublicKey, Global>
) -> Result<(), Error>
[src]
&mut self,
validator_public_keys: Vec<PublicKey, Global>
) -> Result<(), Error>
pub fn run_auction(
&mut self,
era_end_timestamp_millis: u64,
evicted_validators: Vec<PublicKey, Global>
) -> Result<(), Error>
[src]
&mut self,
era_end_timestamp_millis: u64,
evicted_validators: Vec<PublicKey, Global>
) -> Result<(), Error>
pub fn distribute(
&mut self,
reward_factors: BTreeMap<PublicKey, u64>
) -> Result<(), Error>
[src]
&mut self,
reward_factors: BTreeMap<PublicKey, u64>
) -> Result<(), Error>
pub fn read_era_id(&mut self) -> Result<u64, Error>
[src]
pub fn activate_bid(
&mut self,
validator_public_key: PublicKey
) -> Result<(), Error>
[src]
&mut self,
validator_public_key: PublicKey
) -> Result<(), Error>
impl<'a, R> Externals for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn invoke_index(
&mut self,
index: usize,
args: RuntimeArgs<'_>
) -> Result<Option<RuntimeValue>, Trap>
[src]
&mut self,
index: usize,
args: RuntimeArgs<'_>
) -> Result<Option<RuntimeValue>, Trap>
impl<'a, R> HandlePayment for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
pub fn get_payment_purse(&self) -> Result<URef, Error>
[src]
pub fn set_refund_purse(&mut self, purse: URef) -> Result<(), Error>
[src]
pub fn get_refund_purse(&self) -> Result<Option<URef>, Error>
[src]
pub fn finalize_payment(
&mut self,
amount_spent: U512,
account: AccountHash,
target: URef
) -> Result<(), Error>
[src]
&mut self,
amount_spent: U512,
account: AccountHash,
target: URef
) -> Result<(), Error>
impl<'a, R> HandlePaymentProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn get_payment_purse(&mut self) -> Result<URef, ApiError>
[src]
impl<'a, R> Mint for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
pub fn mint(&mut self, initial_balance: U512) -> Result<URef, Error>
[src]
pub fn reduce_total_supply(&mut self, amount: U512) -> Result<(), Error>
[src]
pub fn balance(&mut self, purse: URef) -> Result<Option<U512>, Error>
[src]
pub fn transfer(
&mut self,
maybe_to: Option<AccountHash>,
source: URef,
target: URef,
amount: U512,
id: Option<u64>
) -> Result<(), Error>
[src]
&mut self,
maybe_to: Option<AccountHash>,
source: URef,
target: URef,
amount: U512,
id: Option<u64>
) -> Result<(), Error>
pub fn read_base_round_reward(&mut self) -> Result<U512, Error>
[src]
impl<'a, R> MintProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn transfer_purse_to_account(
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
[src]
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
fn transfer_purse_to_purse(
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
[src]
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
fn balance(&mut self, purse: URef) -> Result<Option<U512>, Error>
[src]
fn read_base_round_reward(&mut self) -> Result<U512, Error>
[src]
fn mint(&mut self, amount: U512) -> Result<URef, Error>
[src]
fn reduce_total_supply(&mut self, amount: U512) -> Result<(), Error>
[src]
impl<'a, R> MintProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn transfer_purse_to_account(
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
[src]
&mut self,
source: URef,
target: AccountHash,
amount: U512
) -> Result<TransferredTo, Error>
fn transfer_purse_to_purse(
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
[src]
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
fn balance(&mut self, purse: URef) -> Result<Option<U512>, Error>
[src]
impl<'a, R> MintProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn transfer_purse_to_purse(
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), ApiError>
[src]
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), ApiError>
impl<'a, R> RuntimeProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn get_caller(&self) -> AccountHash
[src]
fn named_keys_get(&self, name: &str) -> Option<Key>
[src]
fn get_keys(&mut self, key_tag: &KeyTag) -> Result<BTreeSet<Key>, Error>
[src]
fn blake2b<T: AsRef<[u8]>>(&self, data: T) -> [u8; 32]
[src]
impl<'a, R> RuntimeProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn get_key(&self, name: &str) -> Option<Key>
[src]
fn put_key(&mut self, name: &str, key: Key) -> Result<(), Error>
[src]
fn remove_key(&mut self, name: &str) -> Result<(), Error>
[src]
fn get_phase(&self) -> Phase
[src]
fn get_block_time(&self) -> BlockTime
[src]
fn get_caller(&self) -> AccountHash
[src]
impl<'a, R> RuntimeProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn get_caller(&self) -> AccountHash
[src]
fn put_key(&mut self, name: &str, key: Key) -> Result<(), Error>
[src]
fn get_key(&self, name: &str) -> Option<Key>
[src]
impl<'a, R> StandardPayment for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
impl<'a, R> StorageProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn read<T: FromBytes + CLTyped>(
&mut self,
uref: URef
) -> Result<Option<T>, Error>
[src]
&mut self,
uref: URef
) -> Result<Option<T>, Error>
fn write<T: ToBytes + CLTyped>(
&mut self,
uref: URef,
value: T
) -> Result<(), Error>
[src]
&mut self,
uref: URef,
value: T
) -> Result<(), Error>
fn read_bid(&mut self, account_hash: &AccountHash) -> Result<Option<Bid>, Error>
[src]
fn write_bid(
&mut self,
account_hash: AccountHash,
bid: Bid
) -> Result<(), Error>
[src]
&mut self,
account_hash: AccountHash,
bid: Bid
) -> Result<(), Error>
fn read_withdraw(
&mut self,
account_hash: &AccountHash
) -> Result<Vec<UnbondingPurse>, Error>
[src]
&mut self,
account_hash: &AccountHash
) -> Result<Vec<UnbondingPurse>, Error>
fn write_withdraw(
&mut self,
account_hash: AccountHash,
unbonding_purses: Vec<UnbondingPurse>
) -> Result<(), Error>
[src]
&mut self,
account_hash: AccountHash,
unbonding_purses: Vec<UnbondingPurse>
) -> Result<(), Error>
impl<'a, R> StorageProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn new_uref<T: CLTyped + ToBytes>(&mut self, init: T) -> Result<URef, Error>
[src]
fn read<T: CLTyped + FromBytes>(
&mut self,
uref: URef
) -> Result<Option<T>, Error>
[src]
&mut self,
uref: URef
) -> Result<Option<T>, Error>
fn write<T: CLTyped + ToBytes>(
&mut self,
uref: URef,
value: T
) -> Result<(), Error>
[src]
&mut self,
uref: URef,
value: T
) -> Result<(), Error>
fn add<T: CLTyped + ToBytes>(
&mut self,
uref: URef,
value: T
) -> Result<(), Error>
[src]
&mut self,
uref: URef,
value: T
) -> Result<(), Error>
fn read_balance(&mut self, uref: URef) -> Result<Option<U512>, Error>
[src]
fn write_balance(&mut self, uref: URef, balance: U512) -> Result<(), Error>
[src]
fn add_balance(&mut self, uref: URef, value: U512) -> Result<(), Error>
[src]
impl<'a, R> SystemProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
fn create_purse(&mut self) -> Result<URef, Error>
[src]
fn get_balance(&mut self, purse: URef) -> Result<Option<U512>, Error>
[src]
fn transfer_from_purse_to_purse(
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
[src]
&mut self,
source: URef,
target: URef,
amount: U512
) -> Result<(), Error>
fn record_era_info(
&mut self,
era_id: u64,
era_info: EraInfo
) -> Result<(), Error>
[src]
&mut self,
era_id: u64,
era_info: EraInfo
) -> Result<(), Error>
impl<'a, R> SystemProvider for Runtime<'a, R> where
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
[src]
R: StateReader<Key, StoredValue>,
R::Error: Into<Error>,
Auto Trait Implementations
impl<'a, R> !RefUnwindSafe for Runtime<'a, R>
impl<'a, R> !Send for Runtime<'a, R>
impl<'a, R> !Sync for Runtime<'a, R>
impl<'a, R> Unpin for Runtime<'a, R>
impl<'a, R> !UnwindSafe for Runtime<'a, R>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Conv for T
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> FmtForward for T
pub fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Self: Binary,
pub fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Self: Display,
pub fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Self: LowerExp,
pub fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Self: LowerHex,
pub fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Self: Octal,
pub fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Self: Pointer,
pub fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Self: UpperExp,
pub fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Self: UpperHex,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pipe for T
impl<T> PipeAsRef for T
pub fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
R: 'a,
T: 'a,
Self: AsRef<T>,
R: 'a,
T: 'a,
pub fn pipe_as_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
R: 'a,
T: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
R: 'a,
T: 'a,
impl<T> PipeBorrow for T
pub fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
R: 'a,
T: 'a,
Self: Borrow<T>,
R: 'a,
T: 'a,
pub fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
R: 'a,
T: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
R: 'a,
T: 'a,
impl<T> PipeDeref for T
pub fn pipe_deref<'a, R>(
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
pub fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
impl<T> PipeRef for T
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
R: 'a,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Tap for T
pub fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
pub fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
impl<T> TapDeref for T
pub fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
pub fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
impl<T> TryConv for T
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,