Enum BaseUpgrade
#[non_exhaustive]pub enum BaseUpgrade {
Show 16 variants
Bedrock,
Regolith,
Canyon,
Delta,
Ecotone,
Fjord,
Granite,
Holocene,
PectraBlobSchedule,
Isthmus,
Jovian,
Azul,
Beryl,
Cobalt,
Denim,
Zenith,
}Expand description
The canonical Base network upgrade.
This single enum spans two domains:
- the execution fork ladder (
BaseUpgrade::EXECUTION_VARIANTS) that maps onto the reth/revm hardfork schedule, and - the contract-backed upgrade set (
BaseUpgrade::CONTRACT_VARIANTS) that is keyed by the L1 upgrade-signal contracthardforkIdstrings and the genesis [UpgradeConfig] timestamp fields.
Real network upgrades are listed in chronological order. Bedrock
is execution-only (block-activated, not contract-backed), while
Delta and PectraBlobSchedule
are contract-backed config upgrades that do not change EVM execution and therefore never
enter the execution fork ladder.
Denim is the fourth Base-specific network upgrade. It is
unscheduled for now, but it is a first-class upgrade: contract-backed and part of the
execution fork ladder, so live chains can activate it once an activation time is
configured.
Zenith is a hardfork for future experimental features. It is
genesis-configurable but not contract-backed, since the L1 upgrade-signal contract does
not yet recognise it.
When building a list of upgrades for a chain, it’s still expected to zip with
EthereumHardfork.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bedrock
Bedrock: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#bedrock.
Regolith
Regolith: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#regolith.
Canyon
Canyon: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#canyon.
Delta
Delta: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#delta.
Ecotone
Ecotone: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#ecotone.
Fjord
Fjord: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#fjord
Granite
Granite: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#granite
Holocene
Holocene: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/superchain-upgrades.md#holocene
PectraBlobSchedule
Pectra blob schedule: an optional fork present on Base Sepolia chains that observed the
L1 Pectra network upgrade with the reference node <=v1.11.1 sequencing the network.
Isthmus
Jovian
Jovian: Base network upgrade.
Azul
Azul: First Base-specific network upgrade.
Beryl
Beryl: Second Base-specific network upgrade.
Cobalt
Cobalt: Third Base-specific network upgrade.
Denim
Denim: Fourth Base-specific network upgrade. Unscheduled for now.
Zenith
Zenith: hardfork for future experimental features.
Implementations§
§impl BaseUpgrade
impl BaseUpgrade
pub const VARIANTS: &'static [BaseUpgrade]
pub const VARIANTS: &'static [BaseUpgrade]
All hardfork variants
§impl BaseUpgrade
impl BaseUpgrade
pub const LATEST: BaseUpgrade = Self::Beryl
pub const LATEST: BaseUpgrade = Self::Beryl
Latest Base upgrade used by default.
pub const EXECUTION_VARIANTS: [BaseUpgrade; 13]
pub const EXECUTION_VARIANTS: [BaseUpgrade; 13]
The execution fork ladder, in activation order.
These are the upgrades that participate in the reth/revm hardfork schedule. Excludes the
contract-only Delta and PectraBlobSchedule
upgrades, and Zenith, which does not yet change EVM execution.
pub const CONTRACT_VARIANTS: [BaseUpgrade; 14]
pub const CONTRACT_VARIANTS: [BaseUpgrade; 14]
The contract-backed upgrade set, in activation order.
These are the upgrades addressable by the L1 upgrade-signal contract and stored in the
genesis [UpgradeConfig]. Excludes block-activated Bedrock and
Zenith, which is activated via genesis config only until the L1
upgrade-signal contract is updated to recognise it.
Order is load-bearing: map_schedule and ScheduleId::pin attribute onchain
schedule entries to hardforks by position, and the ProtocolVersions contract keys
upgrades by ascending append-only registration id with names kept offchain. This order MUST
match the contract’s registration order — reordering silently misattributes every
activation timestamp. Only ever append.
pub const fn is_execution(self) -> bool
pub const fn is_execution(self) -> bool
Returns true if this upgrade participates in the execution fork ladder.
pub const fn is_contract_backed(self) -> bool
pub const fn is_contract_backed(self) -> bool
pub const fn execution_idx(self) -> Option<usize>
pub const fn execution_idx(self) -> Option<usize>
Returns this upgrade’s index within EXECUTION_VARIANTS, or
None for contract-only upgrades that are absent from the execution fork ladder.
pub const fn contract_id(self) -> &'static str
pub const fn contract_id(self) -> &'static str
Returns the canonical snake_case contract upgrade ID used by the L1 upgrade-signal
contract and metrics.
Note this differs from name (PascalCase), which is the reth/execution
hardfork identity.
pub const fn execution_hardfork(self) -> Option<EthereumHardfork>
pub const fn execution_hardfork(self) -> Option<EthereumHardfork>
Returns the Ethereum execution hardfork activated by this upgrade, if any.
pub const fn from_ethereum_hardfork(
fork: EthereumHardfork,
) -> Option<BaseUpgrade>
pub const fn from_ethereum_hardfork( fork: EthereumHardfork, ) -> Option<BaseUpgrade>
Returns the Base upgrade that carries the given Ethereum hardfork on Base.
pub fn from_contract_fork_name(name: &str) -> Option<BaseUpgrade>
pub fn from_contract_fork_name(name: &str) -> Option<BaseUpgrade>
Returns the contract-backed upgrade represented by an execution, Base, or contract alias
name. Returns None for unknown names and for non-contract-backed upgrades (Bedrock).
pub fn normalized_hardfork_id(upgrade_id: &str) -> String
pub fn normalized_hardfork_id(upgrade_id: &str) -> String
Normalizes a contract upgrade ID for matching (lowercase, stripping whitespace, _, -).
pub fn from_chain_and_timestamp(
chain_id: u64,
timestamp: u64,
) -> Option<BaseUpgrade>
pub fn from_chain_and_timestamp( chain_id: u64, timestamp: u64, ) -> Option<BaseUpgrade>
Returns the active upgrade at the given timestamp for the specified chain.
Trait Implementations§
§impl BaseUpgradeExt for BaseUpgrade
impl BaseUpgradeExt for BaseUpgrade
§fn into_eth_spec(self) -> SpecId
fn into_eth_spec(self) -> SpecId
§fn forks_for(cfg: &ChainConfig) -> [(BaseUpgrade, ForkCondition); 13]
fn forks_for(cfg: &ChainConfig) -> [(BaseUpgrade, ForkCondition); 13]
§fn from_timestamp(chain_spec: impl Upgrades, timestamp: u64) -> BaseUpgrade
fn from_timestamp(chain_spec: impl Upgrades, timestamp: u64) -> BaseUpgrade
§fn mainnet() -> [(BaseUpgrade, ForkCondition); 13]
fn mainnet() -> [(BaseUpgrade, ForkCondition); 13]
§fn sepolia() -> [(BaseUpgrade, ForkCondition); 13]
fn sepolia() -> [(BaseUpgrade, ForkCondition); 13]
§fn devnet() -> [(BaseUpgrade, ForkCondition); 13]
fn devnet() -> [(BaseUpgrade, ForkCondition); 13]
§fn zeronet() -> [(BaseUpgrade, ForkCondition); 13]
fn zeronet() -> [(BaseUpgrade, ForkCondition); 13]
§impl Clone for BaseUpgrade
impl Clone for BaseUpgrade
§fn clone(&self) -> BaseUpgrade
fn clone(&self) -> BaseUpgrade
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BaseUpgrade
§impl Debug for BaseUpgrade
impl Debug for BaseUpgrade
§impl Default for BaseUpgrade
impl Default for BaseUpgrade
§fn default() -> BaseUpgrade
fn default() -> BaseUpgrade
§impl<'de> Deserialize<'de> for BaseUpgrade
impl<'de> Deserialize<'de> for BaseUpgrade
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BaseUpgrade, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BaseUpgrade, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Display for BaseUpgrade
impl Display for BaseUpgrade
impl Eq for BaseUpgrade
§impl From<BaseSpecId> for BaseUpgrade
impl From<BaseSpecId> for BaseUpgrade
§fn from(spec: BaseSpecId) -> BaseUpgrade
fn from(spec: BaseSpecId) -> BaseUpgrade
§impl From<BaseUpgrade> for BaseSpecId
impl From<BaseUpgrade> for BaseSpecId
§fn from(upgrade: BaseUpgrade) -> BaseSpecId
fn from(upgrade: BaseUpgrade) -> BaseSpecId
Source§impl From<BaseUpgrade> for FoundryHardfork
Available on crate feature base only.
impl From<BaseUpgrade> for FoundryHardfork
base only.Source§fn from(value: BaseUpgrade) -> Self
fn from(value: BaseUpgrade) -> Self
Source§impl From<FoundryHardfork> for BaseUpgrade
Available on crate feature base only.
impl From<FoundryHardfork> for BaseUpgrade
base only.Source§fn from(fork: FoundryHardfork) -> Self
fn from(fork: FoundryHardfork) -> Self
§impl FromStr for BaseUpgrade
impl FromStr for BaseUpgrade
§impl Hardfork for BaseUpgrade
impl Hardfork for BaseUpgrade
§impl Hash for BaseUpgrade
impl Hash for BaseUpgrade
§impl Ord for BaseUpgrade
impl Ord for BaseUpgrade
§fn cmp(&self, other: &BaseUpgrade) -> Ordering
fn cmp(&self, other: &BaseUpgrade) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
§impl PartialEq for BaseUpgrade
impl PartialEq for BaseUpgrade
§impl PartialOrd for BaseUpgrade
impl PartialOrd for BaseUpgrade
§impl Serialize for BaseUpgrade
impl Serialize for BaseUpgrade
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for BaseUpgrade
Auto Trait Implementations§
impl Freeze for BaseUpgrade
impl RefUnwindSafe for BaseUpgrade
impl Send for BaseUpgrade
impl Sync for BaseUpgrade
impl Unpin for BaseUpgrade
impl UnsafeUnpin for BaseUpgrade
impl UnwindSafe for BaseUpgrade
Blanket Implementations§
§impl<S> BasePrecompileSpec for S
impl<S> BasePrecompileSpec for S
§fn default_precompile_spec() -> Self
fn default_precompile_spec() -> Self
§fn upgrade(self) -> BaseUpgrade
fn upgrade(self) -> BaseUpgrade
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv] from a transaction and a sender address.§impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
§fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
TxEnv] from a transaction, its sender, and encoded transaction bytes.§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 more§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);§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> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for Twhere
T: RpcSend + RpcRecv,
impl<T> RpcRecv for T
impl<T> RpcSend 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.§impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
impl<Q> ToOwnedEquivalent<<Q as ToOwned>::Owned> for Q
fn to_owned_equivalent(&self) -> <Q as ToOwned>::Owned
§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Bedrock: 0 bytesRegolith: 0 bytesCanyon: 0 bytesDelta: 0 bytesEcotone: 0 bytesFjord: 0 bytesGranite: 0 bytesHolocene: 0 bytesPectraBlobSchedule: 0 bytesIsthmus: 0 bytesJovian: 0 bytesAzul: 0 bytesBeryl: 0 bytesCobalt: 0 bytesDenim: 0 bytesZenith: 0 bytes