#[non_exhaustive]pub struct SystemParameters {
pub epoch_duration_ms: Option<u64>,
pub stake_subsidy_start_epoch: Option<u64>,
pub min_validator_count: Option<u64>,
pub max_validator_count: Option<u64>,
pub min_validator_joining_stake: Option<u64>,
pub validator_low_stake_threshold: Option<u64>,
pub validator_very_low_stake_threshold: Option<u64>,
pub validator_low_stake_grace_period: Option<u64>,
pub extra_fields: Option<MoveTable>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.epoch_duration_ms: Option<u64>
The duration of an epoch, in milliseconds.
stake_subsidy_start_epoch: Option<u64>
The starting epoch in which stake subsidies start being paid out
min_validator_count: Option<u64>
Minimum number of active validators at any moment.
max_validator_count: Option<u64>
Maximum number of active validators at any moment. We do not allow the number of validators in any epoch to go above this.
min_validator_joining_stake: Option<u64>
Deprecated. Lower-bound on the amount of stake required to become a validator.
validator_low_stake_threshold: Option<u64>
Deprecated.
Validators with stake amount below validator_low_stake_threshold
are considered to
have low stake and will be escorted out of the validator set after being below this
threshold for more than validator_low_stake_grace_period
number of epochs.
validator_very_low_stake_threshold: Option<u64>
Deprecated.
Validators with stake below validator_very_low_stake_threshold
will be removed
immediately at epoch change, no grace period.
validator_low_stake_grace_period: Option<u64>
A validator can have stake below validator_low_stake_threshold
for this many epochs before being kicked out.
extra_fields: Option<MoveTable>
Any extra fields that are not defined statically.
Implementations§
Source§impl SystemParameters
impl SystemParameters
pub const EPOCH_DURATION_MS_FIELD: &'static MessageField
pub const STAKE_SUBSIDY_START_EPOCH_FIELD: &'static MessageField
pub const MIN_VALIDATOR_COUNT_FIELD: &'static MessageField
pub const MAX_VALIDATOR_COUNT_FIELD: &'static MessageField
pub const MIN_VALIDATOR_JOINING_STAKE_FIELD: &'static MessageField
pub const VALIDATOR_LOW_STAKE_THRESHOLD_FIELD: &'static MessageField
pub const VALIDATOR_VERY_LOW_STAKE_THRESHOLD_FIELD: &'static MessageField
pub const VALIDATOR_LOW_STAKE_GRACE_PERIOD_FIELD: &'static MessageField
pub const EXTRA_FIELDS_FIELD: &'static MessageField
Source§impl SystemParameters
impl SystemParameters
pub fn path_builder() -> SystemParametersFieldPathBuilder
Source§impl SystemParameters
impl SystemParameters
pub const fn const_default() -> Self
Sourcepub fn epoch_duration_ms_opt_mut(&mut self) -> Option<&mut u64>
pub fn epoch_duration_ms_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn epoch_duration_ms_mut(&mut self) -> &mut u64
pub fn epoch_duration_ms_mut(&mut self) -> &mut u64
Returns a mutable reference to epoch_duration_ms
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn epoch_duration_ms_opt(&self) -> Option<u64>
pub fn epoch_duration_ms_opt(&self) -> Option<u64>
Sourcepub fn set_epoch_duration_ms<T: Into<u64>>(&mut self, field: T)
pub fn set_epoch_duration_ms<T: Into<u64>>(&mut self, field: T)
Sets epoch_duration_ms
with the provided value.
Sourcepub fn with_epoch_duration_ms<T: Into<u64>>(self, field: T) -> Self
pub fn with_epoch_duration_ms<T: Into<u64>>(self, field: T) -> Self
Sets epoch_duration_ms
with the provided value.
Sourcepub fn stake_subsidy_start_epoch_opt_mut(&mut self) -> Option<&mut u64>
pub fn stake_subsidy_start_epoch_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn stake_subsidy_start_epoch_mut(&mut self) -> &mut u64
pub fn stake_subsidy_start_epoch_mut(&mut self) -> &mut u64
Returns a mutable reference to stake_subsidy_start_epoch
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn stake_subsidy_start_epoch_opt(&self) -> Option<u64>
pub fn stake_subsidy_start_epoch_opt(&self) -> Option<u64>
Sourcepub fn set_stake_subsidy_start_epoch<T: Into<u64>>(&mut self, field: T)
pub fn set_stake_subsidy_start_epoch<T: Into<u64>>(&mut self, field: T)
Sets stake_subsidy_start_epoch
with the provided value.
Sourcepub fn with_stake_subsidy_start_epoch<T: Into<u64>>(self, field: T) -> Self
pub fn with_stake_subsidy_start_epoch<T: Into<u64>>(self, field: T) -> Self
Sets stake_subsidy_start_epoch
with the provided value.
Sourcepub fn min_validator_count_opt_mut(&mut self) -> Option<&mut u64>
pub fn min_validator_count_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn min_validator_count_mut(&mut self) -> &mut u64
pub fn min_validator_count_mut(&mut self) -> &mut u64
Returns a mutable reference to min_validator_count
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn min_validator_count_opt(&self) -> Option<u64>
pub fn min_validator_count_opt(&self) -> Option<u64>
Sourcepub fn set_min_validator_count<T: Into<u64>>(&mut self, field: T)
pub fn set_min_validator_count<T: Into<u64>>(&mut self, field: T)
Sets min_validator_count
with the provided value.
Sourcepub fn with_min_validator_count<T: Into<u64>>(self, field: T) -> Self
pub fn with_min_validator_count<T: Into<u64>>(self, field: T) -> Self
Sets min_validator_count
with the provided value.
Sourcepub fn max_validator_count_opt_mut(&mut self) -> Option<&mut u64>
pub fn max_validator_count_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn max_validator_count_mut(&mut self) -> &mut u64
pub fn max_validator_count_mut(&mut self) -> &mut u64
Returns a mutable reference to max_validator_count
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn max_validator_count_opt(&self) -> Option<u64>
pub fn max_validator_count_opt(&self) -> Option<u64>
Sourcepub fn set_max_validator_count<T: Into<u64>>(&mut self, field: T)
pub fn set_max_validator_count<T: Into<u64>>(&mut self, field: T)
Sets max_validator_count
with the provided value.
Sourcepub fn with_max_validator_count<T: Into<u64>>(self, field: T) -> Self
pub fn with_max_validator_count<T: Into<u64>>(self, field: T) -> Self
Sets max_validator_count
with the provided value.
Sourcepub fn min_validator_joining_stake_opt_mut(&mut self) -> Option<&mut u64>
pub fn min_validator_joining_stake_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn min_validator_joining_stake_mut(&mut self) -> &mut u64
pub fn min_validator_joining_stake_mut(&mut self) -> &mut u64
Returns a mutable reference to min_validator_joining_stake
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn min_validator_joining_stake_opt(&self) -> Option<u64>
pub fn min_validator_joining_stake_opt(&self) -> Option<u64>
Sourcepub fn set_min_validator_joining_stake<T: Into<u64>>(&mut self, field: T)
pub fn set_min_validator_joining_stake<T: Into<u64>>(&mut self, field: T)
Sets min_validator_joining_stake
with the provided value.
Sourcepub fn with_min_validator_joining_stake<T: Into<u64>>(self, field: T) -> Self
pub fn with_min_validator_joining_stake<T: Into<u64>>(self, field: T) -> Self
Sets min_validator_joining_stake
with the provided value.
Sourcepub fn validator_low_stake_threshold_opt_mut(&mut self) -> Option<&mut u64>
pub fn validator_low_stake_threshold_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn validator_low_stake_threshold_mut(&mut self) -> &mut u64
pub fn validator_low_stake_threshold_mut(&mut self) -> &mut u64
Returns a mutable reference to validator_low_stake_threshold
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn validator_low_stake_threshold_opt(&self) -> Option<u64>
pub fn validator_low_stake_threshold_opt(&self) -> Option<u64>
Sourcepub fn set_validator_low_stake_threshold<T: Into<u64>>(&mut self, field: T)
pub fn set_validator_low_stake_threshold<T: Into<u64>>(&mut self, field: T)
Sets validator_low_stake_threshold
with the provided value.
Sourcepub fn with_validator_low_stake_threshold<T: Into<u64>>(self, field: T) -> Self
pub fn with_validator_low_stake_threshold<T: Into<u64>>(self, field: T) -> Self
Sets validator_low_stake_threshold
with the provided value.
Sourcepub fn validator_very_low_stake_threshold_opt_mut(&mut self) -> Option<&mut u64>
pub fn validator_very_low_stake_threshold_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn validator_very_low_stake_threshold_mut(&mut self) -> &mut u64
pub fn validator_very_low_stake_threshold_mut(&mut self) -> &mut u64
Returns a mutable reference to validator_very_low_stake_threshold
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn validator_very_low_stake_threshold_opt(&self) -> Option<u64>
pub fn validator_very_low_stake_threshold_opt(&self) -> Option<u64>
Sourcepub fn set_validator_very_low_stake_threshold<T: Into<u64>>(&mut self, field: T)
pub fn set_validator_very_low_stake_threshold<T: Into<u64>>(&mut self, field: T)
Sets validator_very_low_stake_threshold
with the provided value.
Sourcepub fn with_validator_very_low_stake_threshold<T: Into<u64>>(
self,
field: T,
) -> Self
pub fn with_validator_very_low_stake_threshold<T: Into<u64>>( self, field: T, ) -> Self
Sets validator_very_low_stake_threshold
with the provided value.
Sourcepub fn validator_low_stake_grace_period_opt_mut(&mut self) -> Option<&mut u64>
pub fn validator_low_stake_grace_period_opt_mut(&mut self) -> Option<&mut u64>
Sourcepub fn validator_low_stake_grace_period_mut(&mut self) -> &mut u64
pub fn validator_low_stake_grace_period_mut(&mut self) -> &mut u64
Returns a mutable reference to validator_low_stake_grace_period
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn validator_low_stake_grace_period_opt(&self) -> Option<u64>
pub fn validator_low_stake_grace_period_opt(&self) -> Option<u64>
Sourcepub fn set_validator_low_stake_grace_period<T: Into<u64>>(&mut self, field: T)
pub fn set_validator_low_stake_grace_period<T: Into<u64>>(&mut self, field: T)
Sets validator_low_stake_grace_period
with the provided value.
Sourcepub fn with_validator_low_stake_grace_period<T: Into<u64>>(
self,
field: T,
) -> Self
pub fn with_validator_low_stake_grace_period<T: Into<u64>>( self, field: T, ) -> Self
Sets validator_low_stake_grace_period
with the provided value.
Sourcepub fn extra_fields(&self) -> &MoveTable
pub fn extra_fields(&self) -> &MoveTable
Returns the value of extra_fields
, or the default value if extra_fields
is unset.
Sourcepub fn extra_fields_opt_mut(&mut self) -> Option<&mut MoveTable>
pub fn extra_fields_opt_mut(&mut self) -> Option<&mut MoveTable>
Sourcepub fn extra_fields_mut(&mut self) -> &mut MoveTable
pub fn extra_fields_mut(&mut self) -> &mut MoveTable
Returns a mutable reference to extra_fields
.
If the field is unset, it is first initialized with the default value.
Sourcepub fn extra_fields_opt(&self) -> Option<&MoveTable>
pub fn extra_fields_opt(&self) -> Option<&MoveTable>
Sourcepub fn set_extra_fields<T: Into<MoveTable>>(&mut self, field: T)
pub fn set_extra_fields<T: Into<MoveTable>>(&mut self, field: T)
Sets extra_fields
with the provided value.
Sourcepub fn with_extra_fields<T: Into<MoveTable>>(self, field: T) -> Self
pub fn with_extra_fields<T: Into<MoveTable>>(self, field: T) -> Self
Sets extra_fields
with the provided value.
Source§impl SystemParameters
impl SystemParameters
Sourcepub fn epoch_duration_ms(&self) -> u64
pub fn epoch_duration_ms(&self) -> u64
Returns the value of epoch_duration_ms
, or the default value if epoch_duration_ms
is unset.
Sourcepub fn stake_subsidy_start_epoch(&self) -> u64
pub fn stake_subsidy_start_epoch(&self) -> u64
Returns the value of stake_subsidy_start_epoch
, or the default value if stake_subsidy_start_epoch
is unset.
Sourcepub fn min_validator_count(&self) -> u64
pub fn min_validator_count(&self) -> u64
Returns the value of min_validator_count
, or the default value if min_validator_count
is unset.
Sourcepub fn max_validator_count(&self) -> u64
pub fn max_validator_count(&self) -> u64
Returns the value of max_validator_count
, or the default value if max_validator_count
is unset.
Sourcepub fn min_validator_joining_stake(&self) -> u64
pub fn min_validator_joining_stake(&self) -> u64
Returns the value of min_validator_joining_stake
, or the default value if min_validator_joining_stake
is unset.
Sourcepub fn validator_low_stake_threshold(&self) -> u64
pub fn validator_low_stake_threshold(&self) -> u64
Returns the value of validator_low_stake_threshold
, or the default value if validator_low_stake_threshold
is unset.
Sourcepub fn validator_very_low_stake_threshold(&self) -> u64
pub fn validator_very_low_stake_threshold(&self) -> u64
Returns the value of validator_very_low_stake_threshold
, or the default value if validator_very_low_stake_threshold
is unset.
Sourcepub fn validator_low_stake_grace_period(&self) -> u64
pub fn validator_low_stake_grace_period(&self) -> u64
Returns the value of validator_low_stake_grace_period
, or the default value if validator_low_stake_grace_period
is unset.
Trait Implementations§
Source§impl Clone for SystemParameters
impl Clone for SystemParameters
Source§fn clone(&self) -> SystemParameters
fn clone(&self) -> SystemParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SystemParameters
impl Debug for SystemParameters
Source§impl Default for SystemParameters
impl Default for SystemParameters
§impl<'de> Deserialize<'de> for SystemParameters
impl<'de> Deserialize<'de> for SystemParameters
§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 Message for SystemParameters
impl Message for SystemParameters
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl MessageFields for SystemParameters
impl MessageFields for SystemParameters
const FIELDS: &'static [&'static MessageField]
Source§impl PartialEq for SystemParameters
impl PartialEq for SystemParameters
§impl Serialize for SystemParameters
impl Serialize for SystemParameters
impl StructuralPartialEq for SystemParameters
Auto Trait Implementations§
impl Freeze for SystemParameters
impl RefUnwindSafe for SystemParameters
impl Send for SystemParameters
impl Sync for SystemParameters
impl Unpin for SystemParameters
impl UnwindSafe for SystemParameters
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered
].§impl<T> 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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.