pub enum Identity {
V0(IdentityV0),
}Expand description
The identity is not stored inside of drive, because of this, the serialization is mainly for transport, the serialization of the identity will include the version, so no passthrough or untagged is needed here
Variants§
V0(IdentityV0)
Implementations§
Source§impl Identity
impl Identity
pub fn default_versioned( platform_version: &PlatformVersion, ) -> Result<Identity, ProtocolError>
Sourcepub fn new_with_id_and_keys(
id: Identifier,
public_keys: BTreeMap<KeyID, IdentityPublicKey>,
platform_version: &PlatformVersion,
) -> Result<Identity, ProtocolError>
pub fn new_with_id_and_keys( id: Identifier, public_keys: BTreeMap<KeyID, IdentityPublicKey>, platform_version: &PlatformVersion, ) -> Result<Identity, ProtocolError>
Created a new identity based on asset locks and keys
Sourcepub fn new_with_input_addresses_and_keys(
inputs: &BTreeMap<PlatformAddress, (AddressNonce, Credits)>,
public_keys: BTreeMap<KeyID, IdentityPublicKey>,
platform_version: &PlatformVersion,
) -> Result<Identity, ProtocolError>
pub fn new_with_input_addresses_and_keys( inputs: &BTreeMap<PlatformAddress, (AddressNonce, Credits)>, public_keys: BTreeMap<KeyID, IdentityPublicKey>, platform_version: &PlatformVersion, ) -> Result<Identity, ProtocolError>
Create a new identity using input PlatformAddresses.
This function derives the identity ID from the provided input addresses.
§Arguments
inputs- A map ofPlatformAddressto(AddressNonce, Credits). The identity id is derived from the addresses and nonces (credits are ignored for the id derivation). The nonces should represent state after creation of the identity (e.g. be incremented by 1).public_keys- A map of KeyID to IdentityPublicKey tuples representing the public keys for the identity.platform_version- The platform version to use for identity creation.
§Returns
Result<Identity, ProtocolError>- Returns the newly created Identity or a ProtocolError if the operation fails.
Sourcepub fn into_partial_identity_info(self) -> PartialIdentity
pub fn into_partial_identity_info(self) -> PartialIdentity
Convenience method to get Partial Identity Info
Sourcepub fn into_partial_identity_info_no_balance(self) -> PartialIdentity
pub fn into_partial_identity_info_no_balance(self) -> PartialIdentity
Convenience method to get Partial Identity Info
Source§impl Identity
impl Identity
pub fn create_basic_identity( id: Identifier, platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Source§impl Identity
impl Identity
Sourcepub fn random_identity_with_rng(
key_count: KeyCount,
rng: &mut StdRng,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>
pub fn random_identity_with_rng( key_count: KeyCount, rng: &mut StdRng, platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Generates a random identity using the specified version and key count, with a provided RNG.
§Arguments
version- An optional feature version for the identity. If not provided, the latest version will be used.key_count- The number of keys to generate for the identity.rng- A mutable reference to a random number generator to use for generating the identity.
§Returns
A randomly generated identity of the specified version.
§Panics
This function will panic if an unsupported version is provided.
Sourcepub fn random_identity_with_main_keys_with_private_key<I>(
key_count: KeyCount,
rng: &mut StdRng,
platform_version: &PlatformVersion,
) -> Result<(Self, I), ProtocolError>where
I: Default + IntoIterator<Item = (IdentityPublicKey, [u8; 32])> + Extend<(IdentityPublicKey, [u8; 32])>,
pub fn random_identity_with_main_keys_with_private_key<I>(
key_count: KeyCount,
rng: &mut StdRng,
platform_version: &PlatformVersion,
) -> Result<(Self, I), ProtocolError>where
I: Default + IntoIterator<Item = (IdentityPublicKey, [u8; 32])> + Extend<(IdentityPublicKey, [u8; 32])>,
Generates a random identity with main keys and their corresponding private keys, using the specified version and key count, with a provided RNG.
§Arguments
version- An optional feature version for the identity. If not provided, the latest version will be used.key_count- The number of keys to generate for the identity.rng- A mutable reference to a random number generator to use for generating the identity.
§Returns
A tuple containing the randomly generated identity and a collection of main keys with their corresponding private keys.
§Panics
This function will panic if an unsupported version is provided.
§Errors
This function may return a ProtocolError if an error occurs during identity generation.
Sourcepub fn random_identity(
key_count: KeyCount,
seed: Option<u64>,
platform_version: &PlatformVersion,
) -> Result<Self, ProtocolError>
pub fn random_identity( key_count: KeyCount, seed: Option<u64>, platform_version: &PlatformVersion, ) -> Result<Self, ProtocolError>
Generates a random identity using the specified version and key count, with an optional seed for reproducibility.
§Arguments
version- An optional feature version for the identity. If not provided, the latest version will be used.key_count- The number of keys to generate for the identity.seed- An optional seed for reproducibility. If provided, the RNG will be seeded with this value.
§Returns
A randomly generated identity of the specified version.
§Panics
This function will panic if an unsupported version is provided.
Sourcepub fn random_identities(
count: u16,
key_count: KeyCount,
seed: Option<u64>,
platform_version: &PlatformVersion,
) -> Result<Vec<Self>, ProtocolError>
pub fn random_identities( count: u16, key_count: KeyCount, seed: Option<u64>, platform_version: &PlatformVersion, ) -> Result<Vec<Self>, ProtocolError>
Generates a specified number of random identities using the specified version and key count, with an optional seed for reproducibility.
§Arguments
version- An optional feature version for the identity. If not provided, the latest version will be used.count- The number of identities to generate.key_count- The number of keys to generate for each identity.seed- An optional seed for reproducibility. If provided, the RNG will be seeded with this value.
§Returns
A vector of randomly generated identities of the specified version.
§Panics
This function will panic if an unsupported version is provided.
Sourcepub fn random_identities_with_rng(
count: u16,
key_count: KeyCount,
rng: &mut StdRng,
platform_version: &PlatformVersion,
) -> Result<Vec<Self>, ProtocolError>
pub fn random_identities_with_rng( count: u16, key_count: KeyCount, rng: &mut StdRng, platform_version: &PlatformVersion, ) -> Result<Vec<Self>, ProtocolError>
Generates a specified number of random identities using the specified version and key count, with a provided RNG.
§Arguments
version- An optional feature version for the identity. If not provided, the latest version will be used.count- The number of identities to generate.key_count- The number of keys to generate for each identity.rng- A mutable reference to a random number generator to use for generating the identities.
§Returns
A vector of randomly generated identities of the specified version.
§Panics
This function will panic if an unsupported version is provided.
Sourcepub fn random_identities_with_private_keys_with_rng<I>(
count: u16,
key_count: KeyCount,
rng: &mut StdRng,
platform_version: &PlatformVersion,
) -> Result<(Vec<Self>, I), ProtocolError>where
I: Default + FromIterator<(IdentityPublicKey, [u8; 32])> + Extend<(IdentityPublicKey, [u8; 32])>,
pub fn random_identities_with_private_keys_with_rng<I>(
count: u16,
key_count: KeyCount,
rng: &mut StdRng,
platform_version: &PlatformVersion,
) -> Result<(Vec<Self>, I), ProtocolError>where
I: Default + FromIterator<(IdentityPublicKey, [u8; 32])> + Extend<(IdentityPublicKey, [u8; 32])>,
Generates a specified number of random identities with their corresponding private keys, using the specified version, key count, and a provided RNG.
§Arguments
version- An optional feature version for the identity. If not provided, the latest version will be used.count- The number of identities to generate.key_count- The number of keys to generate for each identity.rng- A mutable reference to a random number generator to use for generating the identities.
§Returns
A tuple containing a vector of randomly generated identities and a collection of main keys with their corresponding private keys.
§Panics
This function will panic if an unsupported version is provided.
§Errors
This function may return a ProtocolError if an error occurs during identity generation.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Identity
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Identity
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Source§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<IdentityV0> for Identity
impl From<IdentityV0> for Identity
Source§fn from(value: IdentityV0) -> Self
fn from(value: IdentityV0) -> Self
Source§impl IdentityGettersV0 for Identity
impl IdentityGettersV0 for Identity
Source§fn public_keys(&self) -> &BTreeMap<KeyID, IdentityPublicKey>
fn public_keys(&self) -> &BTreeMap<KeyID, IdentityPublicKey>
Returns a reference to the public keys of the identity.
§Returns
A reference to a BTreeMap containing the KeyID as keys and IdentityPublicKey as values.
Source§fn public_keys_mut(&mut self) -> &mut BTreeMap<KeyID, IdentityPublicKey>
fn public_keys_mut(&mut self) -> &mut BTreeMap<KeyID, IdentityPublicKey>
Returns a mutable reference to the public keys of the identity.
§Returns
A mutable reference to a BTreeMap containing the KeyID as keys and IdentityPublicKey as values.
Source§fn public_keys_owned(self) -> BTreeMap<KeyID, IdentityPublicKey>
fn public_keys_owned(self) -> BTreeMap<KeyID, IdentityPublicKey>
Consumes the Identity and returns the owned public keys.
§Returns
A BTreeMap containing the KeyID as keys and IdentityPublicKey as values.
Source§fn id(&self) -> Identifier
fn id(&self) -> Identifier
Source§fn get_public_key_by_id(&self, key_id: KeyID) -> Option<&IdentityPublicKey>
fn get_public_key_by_id(&self, key_id: KeyID) -> Option<&IdentityPublicKey>
Returns a public key for a given id
Source§fn get_public_key_by_id_mut(
&mut self,
key_id: KeyID,
) -> Option<&mut IdentityPublicKey>
fn get_public_key_by_id_mut( &mut self, key_id: KeyID, ) -> Option<&mut IdentityPublicKey>
Returns a public key for a given id
Source§fn get_public_key_max_id(&self) -> KeyID
fn get_public_key_max_id(&self) -> KeyID
Get the biggest public KeyID
Source§fn add_public_key(&mut self, key: IdentityPublicKey)
fn add_public_key(&mut self, key: IdentityPublicKey)
Add an identity public key
Source§fn add_public_keys(&mut self, keys: impl IntoIterator<Item = IdentityPublicKey>)
fn add_public_keys(&mut self, keys: impl IntoIterator<Item = IdentityPublicKey>)
Add identity public keys
Source§fn get_first_public_key_matching(
&self,
purpose: Purpose,
security_levels: HashSet<SecurityLevel>,
key_types: HashSet<KeyType>,
allow_disabled: bool,
) -> Option<&IdentityPublicKey>
fn get_first_public_key_matching( &self, purpose: Purpose, security_levels: HashSet<SecurityLevel>, key_types: HashSet<KeyType>, allow_disabled: bool, ) -> Option<&IdentityPublicKey>
Get first public key matching a purpose, security levels, or key types, optionally allowing disabled keys
Source§impl IdentityPlatformValueConversionMethodsV0 for Identity
impl IdentityPlatformValueConversionMethodsV0 for Identity
fn to_cleaned_object(&self) -> Result<Value, ProtocolError>where
Self: Sized,
Source§impl IdentitySettersV0 for Identity
impl IdentitySettersV0 for Identity
Source§fn set_public_keys(
&mut self,
new_public_keys: BTreeMap<KeyID, IdentityPublicKey>,
)
fn set_public_keys( &mut self, new_public_keys: BTreeMap<KeyID, IdentityPublicKey>, )
Sets the public keys of the identity.
§Arguments
new_public_keys- ABTreeMapcontaining the newKeyIDas keys andIdentityPublicKeyas values.
Source§fn set_balance(&mut self, new_balance: u64)
fn set_balance(&mut self, new_balance: u64)
Source§fn set_revision(&mut self, new_revision: Revision)
fn set_revision(&mut self, new_revision: Revision)
Source§fn bump_revision(&mut self)
fn bump_revision(&mut self)
Sets the revision of the identity to +1.
Source§fn set_id(&mut self, new_id: Identifier)
fn set_id(&mut self, new_id: Identifier)
Source§fn increase_balance(&mut self, amount: u64) -> u64
fn increase_balance(&mut self, amount: u64) -> u64
Increase Identity balance
Source§fn reduce_balance(&mut self, amount: u64) -> u64
fn reduce_balance(&mut self, amount: u64) -> u64
Reduce the Identity balance
Source§fn increment_revision(&mut self) -> Result<(), ProtocolError>
fn increment_revision(&mut self) -> Result<(), ProtocolError>
Increment revision
Source§impl PlatformDeserializable for Identity
impl PlatformDeserializable for Identity
fn deserialize_from_bytes(data: &[u8]) -> Result<Self, ProtocolError>where
Self: Sized,
fn deserialize_from_bytes_no_limit(data: &[u8]) -> Result<Self, ProtocolError>where
Self: Sized,
Source§impl PlatformSerializable for Identity
impl PlatformSerializable for Identity
Source§impl PlatformVersionEncode for Identity
impl PlatformVersionEncode for Identity
Source§fn platform_encode<__E: Encoder>(
&self,
encoder: &mut __E,
platform_version: &PlatformVersion,
) -> Result<(), EncodeError>
fn platform_encode<__E: Encoder>( &self, encoder: &mut __E, platform_version: &PlatformVersion, ) -> Result<(), EncodeError>
Source§impl<'__de> PlatformVersionedBorrowDecode<'__de> for Identity
impl<'__de> PlatformVersionedBorrowDecode<'__de> for Identity
Source§fn platform_versioned_borrow_decode<__D: BorrowDecoder<'__de, Context = BincodeContext>>(
decoder: &mut __D,
platform_version: &PlatformVersion,
) -> Result<Self, DecodeError>
fn platform_versioned_borrow_decode<__D: BorrowDecoder<'__de, Context = BincodeContext>>( decoder: &mut __D, platform_version: &PlatformVersion, ) -> Result<Self, DecodeError>
Source§impl PlatformVersionedDecode for Identity
impl PlatformVersionedDecode for Identity
Source§fn platform_versioned_decode<__D: Decoder<Context = BincodeContext>>(
decoder: &mut __D,
platform_version: &PlatformVersion,
) -> Result<Self, DecodeError>
fn platform_versioned_decode<__D: Decoder<Context = BincodeContext>>( decoder: &mut __D, platform_version: &PlatformVersion, ) -> Result<Self, DecodeError>
Source§impl TryFrom<StateTransitionProofResult> for Identity
impl TryFrom<StateTransitionProofResult> for Identity
Source§type Error = TryIntoError<StateTransitionProofResult>
type Error = TryIntoError<StateTransitionProofResult>
Source§impl TryFromPlatformVersioned<&Value> for Identity
impl TryFromPlatformVersioned<&Value> for Identity
Source§type Error = ProtocolError
type Error = ProtocolError
Source§fn try_from_platform_versioned(
value: &Value,
platform_version: &PlatformVersion,
) -> Result<Self, Self::Error>
fn try_from_platform_versioned( value: &Value, platform_version: &PlatformVersion, ) -> Result<Self, Self::Error>
Source§impl TryFromPlatformVersioned<Value> for Identity
impl TryFromPlatformVersioned<Value> for Identity
Source§type Error = ProtocolError
type Error = ProtocolError
Source§fn try_from_platform_versioned(
value: Value,
platform_version: &PlatformVersion,
) -> Result<Self, Self::Error>
fn try_from_platform_versioned( value: Value, platform_version: &PlatformVersion, ) -> Result<Self, Self::Error>
Source§impl ValueConvertible for Identity
impl ValueConvertible for Identity
fn to_object(&self) -> Result<Value, ProtocolError>where
Self: Sized,
fn into_object(self) -> Result<Value, ProtocolError>where
Self: Sized,
fn from_object(value: Value) -> Result<Self, ProtocolError>where
Self: Sized,
fn from_object_ref(value: &Value) -> Result<Self, ProtocolError>where
Self: Sized,
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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> CostsExt for T
impl<T> CostsExt for T
§fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>where
Self: Sized,
fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>where
Self: Sized,
CostContext object with provided costs.§fn wrap_fn_cost(
self,
f: impl FnOnce(&Self) -> OperationCost,
) -> CostContext<Self>where
Self: Sized,
fn wrap_fn_cost(
self,
f: impl FnOnce(&Self) -> OperationCost,
) -> CostContext<Self>where
Self: Sized,
CostContext object with costs computed using the
value getting wrapped.§impl<'de, T> DefaultBorrowDecode<'de> for Twhere
T: BorrowDecode<'de, ()>,
impl<'de, T> DefaultBorrowDecode<'de> for Twhere
T: BorrowDecode<'de, ()>,
fn borrow_decode<D>(decoder: &mut D) -> Result<Self, DecodeError>
§impl<T> DefaultDecode for T
impl<T> DefaultDecode for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<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>
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, U> IntoOnNetwork<U> for Twhere
U: FromOnNetwork<T>,
impl<T, U> IntoOnNetwork<U> for Twhere
U: FromOnNetwork<T>,
§fn into_on_network(self, network: Network) -> U
fn into_on_network(self, network: Network) -> U
Calls U::from_on_network(self).
§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
§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> 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.