Trait gclient::ext::sp_core::sp_std::default::Default

1.0.0 · source ·
pub trait Default: Sized {
    // Required method
    fn default() -> Self;
}
Expand description

A trait for giving a type a useful default value.

Sometimes, you want to fall back to some kind of default value, and don’t particularly care what it is. This comes up often with structs that define a set of options:

struct SomeOptions {
    foo: i32,
    bar: f32,
}

How can we define some default values? You can use Default:

#[derive(Default)]
struct SomeOptions {
    foo: i32,
    bar: f32,
}

fn main() {
    let options: SomeOptions = Default::default();
}

Now, you get all of the default values. Rust implements Default for various primitives types.

If you want to override a particular option, but still retain the other defaults:

fn main() {
    let options = SomeOptions { foo: 42, ..Default::default() };
}

§Derivable

This trait can be used with #[derive] if all of the type’s fields implement Default. When derived, it will use the default value for each field’s type.

§enums

When using #[derive(Default)] on an enum, you need to choose which unit variant will be default. You do this by placing the #[default] attribute on the variant.

#[derive(Default)]
enum Kind {
    #[default]
    A,
    B,
    C,
}

You cannot use the #[default] attribute on non-unit or non-exhaustive variants.

§How can I implement Default?

Provide an implementation for the default() method that returns the value of your type that should be the default:

enum Kind {
    A,
    B,
    C,
}

impl Default for Kind {
    fn default() -> Self { Kind::A }
}

§Examples

#[derive(Default)]
struct SomeOptions {
    foo: i32,
    bar: f32,
}

Required Methods§

source

fn default() -> Self

Returns the “default value” for a type.

Default values are often some kind of initial value, identity value, or anything else that may make sense as a default.

§Examples

Using built-in default values:

let i: i8 = Default::default();
let (x, y): (Option<String>, f64) = Default::default();
let (a, b, (c, d)): (i32, u32, (bool, bool)) = Default::default();

Making your own:

enum Kind {
    A,
    B,
    C,
}

impl Default for Kind {
    fn default() -> Self { Kind::A }
}

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Default for &str

1.10.0 · source§

impl Default for &CStr

1.9.0 · source§

impl Default for &OsStr

1.28.0 · source§

impl Default for &mut str

source§

impl Default for DispatchKind

source§

impl Default for ErrorReplyReason

source§

impl Default for ReplyCode

source§

impl Default for SignalCode

source§

impl Default for SimpleExecutionError

source§

impl Default for SimpleProgramCreationError

source§

impl Default for SuccessReplyReason

§

impl Default for RuntimeString

§

impl Default for StateVersion

source§

impl Default for Value

The default value is Value::Null.

This is useful for handling omitted Value fields when deserializing.

§Examples

use serde_json::Value;

#[derive(Deserialize)]
struct Settings {
    level: i32,
    #[serde(default)]
    extras: Value,
}

let data = r#" { "level": 42 } "#;
let s: Settings = serde_json::from_str(data)?;

assert_eq!(s.level, 42);
assert_eq!(s.extras, Value::Null);
source§

impl Default for bool

source§

impl Default for char

source§

impl Default for f32

source§

impl Default for f64

source§

impl Default for i8

source§

impl Default for i16

source§

impl Default for i32

source§

impl Default for i64

source§

impl Default for i128

source§

impl Default for isize

source§

impl Default for u8

source§

impl Default for u16

source§

impl Default for u32

source§

impl Default for u64

source§

impl Default for u128

source§

impl Default for ()

source§

impl Default for usize

source§

impl Default for RuntimeBufferSizeError

source§

impl Default for TryNewCodeConfig

source§

impl Default for BlocksAmount

source§

impl Default for BytesAmount

source§

impl Default for CallsAmount

source§

impl Default for SyscallCosts

source§

impl Default for GasInfo

source§

impl Default for CodeId

source§

impl Default for MessageId

source§

impl Default for ProgramId

source§

impl Default for ReservationId

source§

impl Default for Message

source§

impl Default for ReplyDetails

source§

impl Default for SignalDetails

source§

impl Default for ContextOutcome

source§

impl Default for ContextSettings

source§

impl Default for ContextStore

source§

impl Default for HandleMessage

source§

impl Default for HandlePacket

source§

impl Default for IncomingDispatch

source§

impl Default for IncomingMessage

source§

impl Default for InitMessage

source§

impl Default for InitPacket

source§

impl Default for ReplyMessage

source§

impl Default for ReplyPacket

source§

impl Default for SignalMessage

source§

impl Default for StoredMessage

source§

impl Default for PayloadSizeError

source§

impl Default for UserMessage

source§

impl Default for UserStoredMessage

source§

impl Default for MemoryInfix

source§

impl Default for ReservationNonce

source§

impl Default for gsdk::backtrace::Backtrace

§

impl Default for Signature

§

impl Default for gclient::ext::sp_runtime::biguint::BigUint

§

impl Default for Time

§

impl Default for gclient::ext::sp_runtime::offchain::Duration

§

impl Default for OpaqueNetworkState

§

impl Default for Timestamp

1.3.0 · source§

impl Default for gclient::ext::sp_runtime::scale_info::prelude::time::Duration

§

impl Default for PortableRegistryBuilder

§

impl Default for gclient::ext::sp_runtime::scale_info::Registry

§

impl Default for AnySignature

§

impl Default for CryptoTypeId

§

impl Default for gclient::ext::sp_runtime::Digest

§

impl Default for FixedI64

§

impl Default for FixedI128

§

impl Default for FixedU64

§

impl Default for FixedU128

§

impl Default for KeyTypeId

§

impl Default for OpaqueExtrinsic

§

impl Default for PerU16

§

impl Default for Perbill

§

impl Default for Percent

§

impl Default for Permill

§

impl Default for Perquintill

§

impl Default for Rational128

§

impl Default for Storage

§

impl Default for H256

§

impl Default for UintAuthorityId

§

impl Default for ValidTransaction

§

impl Default for ValidTransactionBuilder

1.10.0 · source§

impl Default for CString

source§

impl Default for String

§

impl Default for Dummy

§

impl Default for InMemOffchainStorage

§

impl Default for OffchainState

§

impl Default for PendingRequest

§

impl Default for PoolState

§

impl Default for TestOffchainExt

§

impl Default for TestPersistentOffchainDB

§

impl Default for TestTransactionPoolExt

source§

impl Default for IgnoredAny

§

impl Default for StorageData

§

impl Default for H160

§

impl Default for H512

§

impl Default for OpaquePeerId

§

impl Default for U256

§

impl Default for U512

§

impl Default for TaskExecutor

source§

impl Default for gclient::ext::sp_core::sp_std::alloc::Global

1.28.0 · source§

impl Default for System

1.13.0 · source§

impl Default for DefaultHasher

1.7.0 · source§

impl Default for gclient::ext::sp_core::sp_std::hash::RandomState

source§

impl Default for SipHasher

1.33.0 · source§

impl Default for PhantomPinned

source§

impl Default for RangeFull

1.17.0 · source§

impl Default for gclient::ext::sp_core::sp_std::prelude::Box<str>

1.17.0 · source§

impl Default for gclient::ext::sp_core::sp_std::prelude::Box<CStr>

1.17.0 · source§

impl Default for gclient::ext::sp_core::sp_std::prelude::Box<OsStr>

source§

impl Default for gclient::ext::sp_core::sp_std::prelude::Box<RawValue>

§

impl Default for Writer

source§

impl Default for AtomicBool

1.34.0 · source§

impl Default for AtomicI8

1.34.0 · source§

impl Default for AtomicI16

1.34.0 · source§

impl Default for AtomicI32

1.34.0 · source§

impl Default for AtomicI64

source§

impl Default for AtomicIsize

1.34.0 · source§

impl Default for AtomicU8

1.34.0 · source§

impl Default for AtomicU16

1.34.0 · source§

impl Default for AtomicU32

1.34.0 · source§

impl Default for AtomicU64

source§

impl Default for AtomicUsize

1.10.0 · source§

impl Default for gclient::ext::sp_core::sp_std::sync::Condvar

source§

impl Default for core::fmt::Error

source§

impl Default for Alignment

Returns Alignment::MIN, which is valid for any type.

1.9.0 · source§

impl Default for OsString

1.75.0 · source§

impl Default for FileTimes

source§

impl Default for std::io::util::Empty

source§

impl Default for Sink

1.17.0 · source§

impl Default for PathBuf

1.75.0 · source§

impl Default for ExitCode

The default value is ExitCode::SUCCESS

1.73.0 · source§

impl Default for ExitStatus

The default value is one which indicates successful completion.

source§

impl Default for Adler32

source§

impl Default for anyhow::Chain<'_>

source§

impl Default for DefaultOptions

source§

impl Default for DateTime<FixedOffset>

source§

impl Default for DateTime<Local>

source§

impl Default for DateTime<Utc>

source§

impl Default for Parsed

source§

impl Default for NaiveDate

The default value for a NaiveDate is 1st of January 1970.

§Example

use chrono::NaiveDate;

let default_date = NaiveDate::default();
assert_eq!(default_date, NaiveDate::from_ymd_opt(1970, 1, 1).unwrap());
source§

impl Default for NaiveDateTime

The default value for a NaiveDateTime is one with epoch 0 that is, 1st of January 1970 at 00:00:00.

§Example

use chrono::NaiveDateTime;

assert_eq!(NaiveDateTime::default(), NaiveDateTime::UNIX_EPOCH);
source§

impl Default for NaiveTime

The default value for a NaiveTime is midnight, 00:00:00 exactly.

§Example

use chrono::NaiveTime;

let default_time = NaiveTime::default();
assert_eq!(default_time, NaiveTime::from_hms_opt(0, 0, 0).unwrap());
source§

impl Default for TimeDelta

source§

impl Default for crypto_mac::errors::InvalidKeyLength

source§

impl Default for crypto_mac::errors::MacError

source§

impl Default for curve25519_dalek::edwards::CompressedEdwardsY

source§

impl Default for curve25519_dalek::edwards::EdwardsPoint

source§

impl Default for curve25519_dalek::montgomery::MontgomeryPoint

source§

impl Default for curve25519_dalek::ristretto::CompressedRistretto

source§

impl Default for curve25519_dalek::ristretto::RistrettoPoint

source§

impl Default for curve25519_dalek::scalar::Scalar

source§

impl Default for curve25519_dalek::edwards::CompressedEdwardsY

source§

impl Default for curve25519_dalek::edwards::EdwardsPoint

source§

impl Default for curve25519_dalek::montgomery::MontgomeryPoint

source§

impl Default for curve25519_dalek::ristretto::CompressedRistretto

source§

impl Default for curve25519_dalek::ristretto::RistrettoPoint

source§

impl Default for curve25519_dalek::scalar::Scalar

source§

impl Default for h2::client::Builder

source§

impl Default for h2::server::Builder

source§

impl Default for SizeHint

source§

impl Default for http::extensions::Extensions

source§

impl Default for Method

source§

impl Default for http::request::Builder

source§

impl Default for http::response::Builder

source§

impl Default for StatusCode

source§

impl Default for http::uri::builder::Builder

source§

impl Default for Parts

source§

impl Default for Uri

Returns a Uri representing /

source§

impl Default for http::version::Version

source§

impl Default for itoa::Buffer

source§

impl Default for BigInt

source§

impl Default for num_bigint::biguint::BigUint

source§

impl Default for num_format::buffer::Buffer

source§

impl Default for CustomFormat

source§

impl Default for ryu::buffer::Buffer

source§

impl Default for Map<String, Value>

source§

impl Default for tracing_log::log_tracer::Builder

source§

impl Default for LogTracer

source§

impl Default for Directive

source§

impl Default for EnvFilter

source§

impl Default for Targets

source§

impl Default for Json

source§

impl Default for JsonFields

source§

impl Default for Pretty

source§

impl Default for PrettyFields

source§

impl Default for Compact

source§

impl Default for DefaultFields

source§

impl Default for Format

source§

impl Default for tracing_subscriber::fmt::format::Full

source§

impl Default for Subscriber

source§

impl Default for SubscriberBuilder

source§

impl Default for ChronoLocal

source§

impl Default for ChronoUtc

source§

impl Default for SystemTime

source§

impl Default for Uptime

source§

impl Default for TestWriter

source§

impl Default for tracing_subscriber::layer::Identity

source§

impl Default for tracing_subscriber::registry::sharded::Registry

source§

impl Default for CurrentSpan

source§

impl Default for B0

source§

impl Default for B1

source§

impl Default for Z0

source§

impl Default for Equal

source§

impl Default for Greater

source§

impl Default for Less

source§

impl Default for UTerm

source§

impl Default for EntropyRng

source§

impl Default for rand::rngs::thread::ThreadRng

source§

impl Default for rand::rngs::thread::ThreadRng

source§

impl Default for rand_core::os::OsRng

source§

impl Default for rand_core::os::OsRng

§

impl Default for AHasher

Provides a default Hasher with fixed keys. This is typically used in conjunction with BuildHasherDefault to create [AHasher]s in order to hash the keys of the map.

Generally it is preferable to use [RandomState] instead, so that different hashmaps will have different keys. However if fixed keys are desirable this may be used instead.

§Example

use std::hash::BuildHasherDefault;
use ahash::{AHasher, RandomState};
use std::collections::HashMap;

let mut map: HashMap<i32, i32, BuildHasherDefault<AHasher>> = HashMap::default();
map.insert(12, 34);
§

impl Default for AHasher

Provides a default Hasher with fixed keys. This is typically used in conjunction with BuildHasherDefault to create [AHasher]s in order to hash the keys of the map.

Generally it is preferable to use [RandomState] instead, so that different hashmaps will have different keys. However if fixed keys are desireable this may be used instead.

§Example

use std::hash::BuildHasherDefault;
use ahash::{AHasher, RandomState};
use std::collections::HashMap;

let mut map: HashMap<i32, i32, BuildHasherDefault<AHasher>> = HashMap::default();
map.insert(12, 34);
§

impl Default for Abbreviations

§

impl Default for Abbreviations

§

impl Default for AbbreviationsCache

§

impl Default for AbbreviationsCache

§

impl Default for Acceptor

§

impl Default for AcceptorBuilder<WantsTlsConfig>

§

impl Default for AddressMapSection

§

impl Default for Affine

§

impl Default for AffineStorage

§

impl Default for AhoCorasickBuilder

§

impl Default for AlignedType

§

impl Default for AllocationStats

§

impl Default for AnyDelimiterCodec

§

impl Default for ArrayParams

§

impl Default for ArrayParams

§

impl Default for AtomicWaker

§

impl Default for Augmentation

§

impl Default for Augmentation

§

impl Default for BString

§

impl Default for Backtrace

§

impl Default for BaseAddresses

§

impl Default for BaseAddresses

§

impl Default for BasicExternalities

§

impl Default for BatchResponseBuilder

§

impl Default for BigEndian

§

impl Default for BigEndian

§

impl Default for BigEndian

§

impl Default for BigEndian

§

impl Default for BigEndian

§

impl Default for Bits

§

impl Default for BlockNumberWithHash

§

impl Default for Body

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for Builder

§

impl Default for ByteClasses

§

impl Default for Bytes

§

impl Default for BytesCodec

§

impl Default for BytesMut

§

impl Default for CancellationToken

§

impl Default for ChargeAssetTxPaymentParams

§

impl Default for ChargeTransactionPaymentParams

§

impl Default for ClassBytesRange

§

impl Default for ClassBytesRange

§

impl Default for ClassUnicodeRange

§

impl Default for ClassUnicodeRange

§

impl Default for Client<HttpConnector>

§

impl Default for ClientBuilder

§

impl Default for ClientBuilder

§

impl Default for CodeSection

§

impl Default for CodeSection

§

impl Default for Codec

§

impl Default for ColorChoice

The default is Auto.

§

impl Default for ColorSpec

§

impl Default for ColoredString

§

impl Default for CompressedEdwardsY

§

impl Default for CompressedRistretto

§

impl Default for Condvar

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

§

impl Default for Config

The defaults are that of https://url.spec.whatwg.org/#idna

§

impl Default for Config

§

impl Default for ConnectorBuilder<WantsTlsConfig>

§

impl Default for Const

§

impl Default for ConstantCostRules

§

impl Default for Context

§

impl Default for Context

§

impl Default for CustomConstantCostRules

§

impl Default for CustomSection

§

impl Default for CustomSection

§

impl Default for CvQualifiers

§

impl Default for DataSection

§

impl Default for DataSection

§

impl Default for DataSegmentBuilder

§

impl Default for DataSegmentBuilder

§

impl Default for DebugInfoOffsets

§

impl Default for DecompressorOxide

§

impl Default for DefaultToHost

§

impl Default for DefaultToUnknown

§

impl Default for DemangleOptions

§

impl Default for Digest

§

impl Default for Dispatch

§

impl Default for Dwarf

§

impl Default for DwarfFileType

§

impl Default for DwarfFileType

§

impl Default for Eager

§

impl Default for EdwardsPoint

§

impl Default for ElementSection

§

impl Default for ElementSection

§

impl Default for Endianness

§

impl Default for Endianness

§

impl Default for Engine

§

impl Default for Era

§

impl Default for Error

§

impl Default for ErrorBytes

§

impl Default for ErrorWithGas

§

impl Default for ErrorWithHandle

§

impl Default for ErrorWithHash

§

impl Default for ErrorWithReplyCode

§

impl Default for ErrorWithSignalCode

§

impl Default for ErrorWithTwoHashes

§

impl Default for Errors

§

impl Default for Event

§

impl Default for EventFlags

§

impl Default for EventFlags

§

impl Default for ExportBuilder

§

impl Default for ExportBuilder

§

impl Default for ExportSection

§

impl Default for ExportSection

§

impl Default for Expression

§

impl Default for Extensions

§

impl Default for ExtractKind

§

impl Default for Extractor

§

impl Default for Field

§

impl Default for FieldStorage

§

impl Default for FileInfo

§

impl Default for FilePos

§

impl Default for FinderBuilder

§

impl Default for FnvHasher

§

impl Default for FrameTable

§

impl Default for FuncValidatorAllocations

§

impl Default for FuncValidatorAllocations

§

impl Default for FunctionBuilder

§

impl Default for FunctionBuilder

§

impl Default for FunctionDefinition

§

impl Default for FunctionDefinition

§

impl Default for FunctionNameSubsection

§

impl Default for FunctionNameSubsection

§

impl Default for FunctionSection

§

impl Default for FunctionSection

§

impl Default for FunctionType

§

impl Default for FunctionType

§

impl Default for FxHasher

§

impl Default for GeneralPurposeConfig

§

impl Default for GlobSet

§

impl Default for Global

§

impl Default for GlobalBuilder

§

impl Default for GlobalBuilder

§

impl Default for GlobalSection

§

impl Default for GlobalSection

§

impl Default for GroupInfo

§

impl Default for H128

§

impl Default for H384

§

impl Default for H768

§

impl Default for Hash64

§

impl Default for Hash128

§

impl Default for Hash256StdHasher

§

impl Default for HashWithValue

§

impl Default for HttpClientBuilder

§

impl Default for Identity

§

impl Default for Idna

§

impl Default for ImageSectionHeader

§

impl Default for ImportBuilder

§

impl Default for ImportBuilder

§

impl Default for ImportSection

§

impl Default for ImportSection

§

impl Default for InflateState

§

impl Default for InstanceAllocationStrategy

§

impl Default for InstructionWeights

§

impl Default for InvalidBufferSize

§

impl Default for InvalidKeyLength

§

impl Default for InvalidOutputSize

§

impl Default for InvalidOutputSize

§

impl Default for InvalidOutputSize

§

impl Default for Jacobian

§

impl Default for Keccak224Core

§

impl Default for Keccak256Core

§

impl Default for Keccak256FullCore

§

impl Default for Keccak384Core

§

impl Default for Keccak512Core

§

impl Default for Language

§

impl Default for Lazy

§

impl Default for LazyStateID

§

impl Default for LengthDelimitedCodec

§

impl Default for Limits

§

impl Default for LineEncoding

§

impl Default for LineEncoding

§

impl Default for LineStringTable

§

impl Default for LinesCodec

§

impl Default for LittleEndian

§

impl Default for LittleEndian

§

impl Default for LittleEndian

§

impl Default for LittleEndian

§

impl Default for LittleEndian

§

impl Default for LocalNameSubsection

§

impl Default for LocalNameSubsection

§

impl Default for LocalNodeCacheLimiter

§

impl Default for LocalPool

§

impl Default for LocalSet

§

impl Default for LocalValueCacheLimiter

§

impl Default for LocationListTable

§

impl Default for LookMatcher

§

impl Default for LookSet

§

impl Default for LookSet

§

impl Default for Lsb0

§

impl Default for MacError

§

impl Default for MacError

§

impl Default for MatchKind

§

impl Default for MatchKind

§

impl Default for MatchKind

The default match kind is MatchKind::Standard.

§

impl Default for MemfdOptions

§

impl Default for MemoryBuilder

§

impl Default for MemoryBuilder

§

impl Default for MemoryInitialization

§

impl Default for MemoryKeystore

§

impl Default for MemorySection

§

impl Default for MemorySection

§

impl Default for MemoryWeights

§

impl Default for MessageDeframer

§

impl Default for MessageFragmenter

§

impl Default for Methods

§

impl Default for MissedTickBehavior

§

impl Default for MnemonicType

§

impl Default for Module

§

impl Default for Module

§

impl Default for Module

§

impl Default for ModuleBuilder

§

impl Default for ModuleBuilder

§

impl Default for ModuleContext

§

impl Default for ModuleContextBuilder

§

impl Default for ModuleTypes

§

impl Default for ModuleTypesBuilder

§

impl Default for ModuleVersionStrategy

§

impl Default for MontgomeryPoint

§

impl Default for Msb0

§

impl Default for Mut

§

impl Default for NibbleVec

§

impl Default for NoSubscriber

§

impl Default for Notify

§

impl Default for NullProfilerAgent

§

impl Default for NullPtrError

§

impl Default for ObjectParams

§

impl Default for ObjectParams

§

impl Default for OffchainOverlayedChanges

§

impl Default for OldWeight

§

impl Default for OnDemandInstanceAllocator

§

impl Default for Once

§

impl Default for OnceBool

§

impl Default for OnceNonZeroUsize

§

impl Default for OpenOptions

§

impl Default for Params

§

impl Default for Params

§

impl Default for ParseOptions

§

impl Default for Parser

§

impl Default for Parser

§

impl Default for ParserBuilder

§

impl Default for ParserBuilder

§

impl Default for ParserBuilder

§

impl Default for ParserBuilder

§

impl Default for ParserConfig

§

impl Default for PatternID

§

impl Default for PatternID

§

impl Default for Pointer

§

impl Default for Pointer

§

impl Default for PollNext

§

impl Default for Prefilter

§

impl Default for ProgramMemoryDump

§

impl Default for Protection

§

impl Default for PublicKey

§

impl Default for RandomHashBuilder64

§

impl Default for RandomHashBuilder128

§

impl Default for RandomState

Creates an instance of RandomState using keys obtained from the random number generator. Each instance created in this way will have a unique set of keys. (But the resulting instance can be used to create many hashers each or which will have the same keys.)

This is the same as [RandomState::new()]

NOTE: For safety this trait impl is only available available if either of the flags runtime-rng (on by default) or compile-time-rng are enabled. This is to prevent weakly keyed maps from being accidentally created. Instead one of constructors for [RandomState] must be used.

§

impl Default for RandomState

§

impl Default for RandomState

§

impl Default for RandomXxHashBuilder32

§

impl Default for RandomXxHashBuilder64

§

impl Default for RangeListTable

§

impl Default for RationalInfinite

§

impl Default for ReadBinaryOptions

§

impl Default for RecoverableSignature

§

impl Default for RegexBuilder

§

impl Default for RegexSet

§

impl Default for RegexSet

§

impl Default for Region

§

impl Default for Relocation

§

impl Default for ResolveFlags

§

impl Default for ResolveFlags

§

impl Default for Resources

§

impl Default for Resumption

§

impl Default for RistrettoBoth

§

impl Default for RistrettoPoint

§

impl Default for RpcParams

§

impl Default for RunTimeEndian

§

impl Default for RunTimeEndian

§

impl Default for RuntimeDbWeight

§

impl Default for Scalar

§

impl Default for Scalar

§

impl Default for Schedule

§

impl Default for Secp256k1<All>

§

impl Default for SecretKey

§

impl Default for SectionBaseAddresses

§

impl Default for SectionBaseAddresses

§

impl Default for SectionIndex

§

impl Default for ServerConnectionData

§

impl Default for ServiceBuilder<Identity>

§

impl Default for Sha1

§

impl Default for Sha3_224Core

§

impl Default for Sha3_256Core

§

impl Default for Sha3_384Core

§

impl Default for Sha3_512Core

§

impl Default for Sha224

§

impl Default for Sha224

§

impl Default for Sha256

§

impl Default for Sha256

§

impl Default for Sha384

§

impl Default for Sha384

§

impl Default for Sha512

§

impl Default for Sha512

§

impl Default for Sha512Trunc224

§

impl Default for Sha512Trunc224

§

impl Default for Sha512Trunc256

§

impl Default for Sha512Trunc256

§

impl Default for Shake128Core

§

impl Default for Shake256Core

§

impl Default for ShouldColorize

§

impl Default for SignatureBuilder

§

impl Default for SignatureBuilder

§

impl Default for SignaturesBuilder

§

impl Default for SignaturesBuilder

§

impl Default for SmallIndex

§

impl Default for SpinWait

§

impl Default for StackRecycler

§

impl Default for StartKind

§

impl Default for State

§

impl Default for State

§

impl Default for StateID

§

impl Default for StateID

§

impl Default for StateMachineStats

§

impl Default for StoreData

§

impl Default for StoreLimits

§

impl Default for StringTable

§

impl Default for Style

§

impl Default for SymbolIndex

§

impl Default for SyscallWeights

§

impl Default for Table

§

impl Default for TableBuilder

§

impl Default for TableBuilder

§

impl Default for TableDefinition

§

impl Default for TableDefinition

§

impl Default for TableInitialization

§

impl Default for TableSection

§

impl Default for TableSection

§

impl Default for Target

§

impl Default for ThreadPoolBuilder

§

impl Default for TimestampPrecision

The default timestamp precision is seconds.

§

impl Default for TranslatorBuilder

§

impl Default for TranslatorBuilder

§

impl Default for TrapEncodingBuilder

§

impl Default for TrieFactory

§

impl Default for TrieSpec

§

impl Default for TrieStream

§

impl Default for Tunables

§

impl Default for TwoHashes

§

impl Default for TwoHashesWithValue

§

impl Default for TwoPointZero

§

impl Default for TwoPointZero

§

impl Default for TypeId

§

impl Default for TypeSection

§

impl Default for TypeSection

§

impl Default for U128

§

impl Default for UnitTable

§

impl Default for Unlimited

§

impl Default for UnlimitedCompact

§

impl Default for UnparkResult

§

impl Default for UntypedValue

§

impl Default for UsageUnit

§

impl Default for UseDalekExt

§

impl Default for VMRuntimeLimits

§

impl Default for VMSharedSignatureIndex

§

impl Default for VRFOutput

§

impl Default for Validator

§

impl Default for Validator

§

impl Default for Verifier

§

impl Default for VerifyingKey

§

impl Default for VersionIndex

§

impl Default for VersionIndex

§

impl Default for WasmEntryAttributes

§

impl Default for WasmFeatures

§

impl Default for WasmFeatures

§

impl Default for WasmFileInfo

§

impl Default for WasmFunctionInfo

§

impl Default for WasmLevel

§

impl Default for WasmMetadata

§

impl Default for WatchFlags

§

impl Default for WatchFlags

§

impl Default for Weight

§

impl Default for WhichCaptures

§

impl Default for WriteStyle

§

impl Default for WsClientBuilder

§

impl Default for WsTransportClientBuilder

§

impl Default for WsTransportClientBuilder

§

impl Default for XxHash32

§

impl Default for XxHash64

§

impl Default for vec128_storage

§

impl Default for vec256_storage

§

impl Default for vec512_storage

§

impl<'a> Default for &'a BStr

§

impl<'a> Default for &'a mut BStr

source§

impl<'a> Default for MetadataBuilder<'a>

source§

impl<'a> Default for RecordBuilder<'a>

source§

impl<'a> Default for PrettyFormatter<'a>

§

impl<'a> Default for BatchRequestBuilder<'a>

§

impl<'a> Default for BatchRequestBuilder<'a>

§

impl<'a> Default for DebugInfoData<'a>

§

impl<'a> Default for Env<'a>

§

impl<'a> Default for Imports<'a>

§

impl<'a> Default for ImportsBuilder<'a>

§

impl<'a> Default for IterArgs<'a>

§

impl<'a> Default for NameSection<'a>

§

impl<'a, H, I> Default for KeysIter<'a, H, I>
where H: Hasher, I: StorageIterator<H> + Default,

§

impl<'a, H, I> Default for PairsIter<'a, H, I>
where H: Hasher, I: StorageIterator<H> + Default,

1.70.0 · source§

impl<'a, K, V> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::Iter<'a, K, V>
where K: 'a, V: 'a,

1.70.0 · source§

impl<'a, K, V> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::IterMut<'a, K, V>
where K: 'a, V: 'a,

§

impl<'a, M, T, O> Default for BitDomain<'a, M, T, O>
where M: Mutability, T: 'a + BitStore, O: BitOrder, Address<M, BitSlice<T, O>>: Referential<'a>, Address<M, BitSlice<<T as BitStore>::Unalias, O>>: Referential<'a>, <Address<M, BitSlice<T, O>> as Referential<'a>>::Ref: Default, <Address<M, BitSlice<<T as BitStore>::Unalias, O>> as Referential<'a>>::Ref: Default,

§

impl<'a, M, T, O> Default for Domain<'a, M, T, O>
where M: Mutability, T: 'a + BitStore, O: BitOrder, Address<M, T>: Referential<'a>, Address<M, [<T as BitStore>::Unalias]>: SliceReferential<'a>, <Address<M, [<T as BitStore>::Unalias]> as Referential<'a>>::Ref: Default,

§

impl<'a, T> Default for OnceRef<'a, T>

§

impl<'a, T, U> Default for Cow<'a, T, U>
where T: Beef + ?Sized, U: Capacity, &'a T: Default,

§

impl<'data> Default for Bytes<'data>

§

impl<'data> Default for Bytes<'data>

§

impl<'data> Default for ModuleTranslation<'data>

§

impl<'data> Default for ObjectMap<'data>

§

impl<'data> Default for ObjectMap<'data>

§

impl<'data> Default for ObjectMapEntry<'data>

§

impl<'data> Default for ObjectMapEntry<'data>

§

impl<'data> Default for RelocationBlockIterator<'data>

§

impl<'data> Default for SectionTable<'data>

§

impl<'data> Default for Version<'data>

§

impl<'data> Default for Version<'data>

§

impl<'data, E> Default for LoadCommandIterator<'data, E>
where E: Default + Endian,

§

impl<'data, Elf> Default for VersionTable<'data, Elf>
where Elf: FileHeader,

§

impl<'data, Elf> Default for VersionTable<'data, Elf>
where Elf: FileHeader,

§

impl<'data, Elf, R> Default for SectionTable<'data, Elf, R>
where Elf: Default + FileHeader, R: Default + ReadRef<'data>, <Elf as FileHeader>::SectionHeader: Default,

§

impl<'data, Elf, R> Default for SectionTable<'data, Elf, R>
where Elf: Default + FileHeader, R: Default + ReadRef<'data>, <Elf as FileHeader>::SectionHeader: Default,

§

impl<'data, Elf, R> Default for SymbolTable<'data, Elf, R>
where Elf: FileHeader, R: ReadRef<'data>,

§

impl<'data, Elf, R> Default for SymbolTable<'data, Elf, R>
where Elf: FileHeader, R: ReadRef<'data>,

§

impl<'data, Mach, R> Default for SymbolTable<'data, Mach, R>
where Mach: MachHeader, R: ReadRef<'data>,

§

impl<'data, R> Default for StringTable<'data, R>
where R: ReadRef<'data>,

§

impl<'data, R> Default for StringTable<'data, R>
where R: ReadRef<'data>,

§

impl<'data, R, Coff> Default for SymbolTable<'data, R, Coff>
where R: ReadRef<'data>, Coff: CoffHeader,

§

impl<'input, Endian> Default for EndianSlice<'input, Endian>
where Endian: Default + Endianity,

§

impl<'input, Endian> Default for EndianSlice<'input, Endian>
where Endian: Default + Endianity,

§

impl<'s, T> Default for SliceVec<'s, T>

source§

impl<A> Default for arrayvec::array_string::ArrayString<A>
where A: Array<Item = u8> + Copy,

source§

impl<A> Default for arrayvec::array_string::ArrayString<A>
where A: Array<Item = u8>,

source§

impl<A> Default for arrayvec::ArrayVec<A>
where A: Array,

source§

impl<A> Default for arrayvec::ArrayVec<A>
where A: Array,

§

impl<A> Default for ArrayVec<A>
where A: Array,

§

impl<A> Default for Box<str, A>
where A: Allocator + Default,

§

impl<A> Default for SmallVec<A>
where A: Array,

§

impl<A> Default for TinyVec<A>
where A: Array,

1.70.0 · source§

impl<A, B> Default for gclient::ext::sp_core::sp_std::iter::Chain<A, B>
where A: Default, B: Default,

§

impl<A, O> Default for BitArray<A, O>
where A: BitViewSized, O: BitOrder,

1.11.0 · source§

impl<B> Default for gclient::ext::sp_core::bounded::alloc::borrow::Cow<'_, B>
where B: ToOwned + ?Sized, <B as ToOwned>::Owned: Default,

§

impl<B> Default for BlockAndTime<B>

§

impl<B> Default for BlockAndTimeDeadline<B>

§

impl<BlockSize> Default for BlockBuffer<BlockSize>
where BlockSize: Default + ArrayLength<u8>,

§

impl<BlockSize> Default for BlockBuffer<BlockSize>
where BlockSize: Default + ArrayLength<u8>,

§

impl<BlockSize, Kind> Default for BlockBuffer<BlockSize, Kind>
where BlockSize: ArrayLength<u8> + IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>, <BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero, Kind: BufferKind,

source§

impl<D> Default for http_body::empty::Empty<D>

source§

impl<D> Default for http_body::full::Full<D>
where D: Buf,

source§

impl<D, E> Default for BoxBody<D, E>
where D: Buf + 'static,

source§

impl<D, E> Default for UnsyncBoxBody<D, E>
where D: Buf + 'static,

source§

impl<E> Default for FormattedFields<E>
where E: Default,

§

impl<E> Default for CompressionHeader32<E>
where E: Default + Endian,

§

impl<E> Default for CompressionHeader32<E>
where E: Default + Endian,

§

impl<E> Default for CompressionHeader64<E>
where E: Default + Endian,

§

impl<E> Default for CompressionHeader64<E>
where E: Default + Endian,

§

impl<E> Default for I16<E>
where E: Default + Endian,

§

impl<E> Default for I16Bytes<E>
where E: Default + Endian,

§

impl<E> Default for I16Bytes<E>
where E: Default + Endian,

§

impl<E> Default for I32<E>
where E: Default + Endian,

§

impl<E> Default for I32Bytes<E>
where E: Default + Endian,

§

impl<E> Default for I32Bytes<E>
where E: Default + Endian,

§

impl<E> Default for I64<E>
where E: Default + Endian,

§

impl<E> Default for I64Bytes<E>
where E: Default + Endian,

§

impl<E> Default for I64Bytes<E>
where E: Default + Endian,

§

impl<E> Default for Sym32<E>
where E: Default + Endian,

§

impl<E> Default for Sym32<E>
where E: Default + Endian,

§

impl<E> Default for Sym64<E>
where E: Default + Endian,

§

impl<E> Default for Sym64<E>
where E: Default + Endian,

§

impl<E> Default for U16<E>
where E: Default + Endian,

§

impl<E> Default for U16Bytes<E>
where E: Default + Endian,

§

impl<E> Default for U16Bytes<E>
where E: Default + Endian,

§

impl<E> Default for U32<E>
where E: Default + Endian,

§

impl<E> Default for U32Bytes<E>
where E: Default + Endian,

§

impl<E> Default for U32Bytes<E>
where E: Default + Endian,

§

impl<E> Default for U64<E>
where E: Default + Endian,

§

impl<E> Default for U64Bytes<E>
where E: Default + Endian,

§

impl<E> Default for U64Bytes<E>
where E: Default + Endian,

§

impl<F> Default for Variants<F>
where F: Default + Form,

§

impl<F> Default for OptionFuture<F>

§

impl<F, N, T> Default for FieldBuilder<F, N, T>
where F: Form,

§

impl<F, S> Default for TypeBuilder<F, S>
where F: Form,

§

impl<F, T> Default for FieldsBuilder<F, T>
where F: Form,

§

impl<Fut> Default for FuturesOrdered<Fut>
where Fut: Future,

§

impl<Fut> Default for FuturesUnordered<Fut>

1.7.0 · source§

impl<H> Default for BuildHasherDefault<H>

§

impl<H> Default for NodeCodec<H>
where H: Default,

§

impl<H> Default for OverlayedChanges<H>
where H: Hasher,

§

impl<H> Default for Recorder<H>
where H: Hasher,

§

impl<H> Default for StorageChanges<H>
where H: Hasher,

§

impl<H> Default for TestExternalities<H>
where H: Hasher, <H as Hasher>::Out: Ord + 'static + Codec,

§

impl<H> Default for TrieBackend<MemoryDB<H, PrefixedKey<H>, Vec<u8>>, H>
where H: Hasher, <H as Hasher>::Out: Codec + Ord,

§

impl<H, KF, T> Default for MemoryDB<H, KF, T>
where H: Hasher, T: for<'a> From<&'a [u8]>, KF: KeyFunction<H>,

1.70.0 · source§

impl<I> Default for Cloned<I>
where I: Default,

1.70.0 · source§

impl<I> Default for Copied<I>
where I: Default,

1.70.0 · source§

impl<I> Default for Enumerate<I>
where I: Default,

1.70.0 · source§

impl<I> Default for Flatten<I>
where I: Default + Iterator, <I as Iterator>::Item: IntoIterator,

1.70.0 · source§

impl<I> Default for Fuse<I>
where I: Default,

1.70.0 · source§

impl<I> Default for Rev<I>
where I: Default,

source§

impl<Idx> Default for gclient::ext::sp_core::sp_std::ops::Range<Idx>
where Idx: Default,

§

impl<Inner> Default for Frozen<Inner>
where Inner: Default + Mutability,

§

impl<K> Default for EntitySet<K>
where K: EntityRef,

§

impl<K, V> Default for &Slice<K, V>

§

impl<K, V> Default for &mut Slice<K, V>

1.70.0 · source§

impl<K, V> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::Keys<'_, K, V>

1.70.0 · source§

impl<K, V> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::Range<'_, K, V>

1.70.0 · source§

impl<K, V> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::Values<'_, K, V>

source§

impl<K, V> Default for BTreeMap<K, V>

§

impl<K, V> Default for gclient::ext::sp_core::sp_std::prelude::Box<Slice<K, V>>

§

impl<K, V> Default for AHashMap<K, V>

NOTE: For safety this trait impl is only available available if either of the flags runtime-rng (on by default) or compile-time-rng are enabled. This is to prevent weakly keyed maps from being accidentally created. Instead one of constructors for [RandomState] must be used.

§

impl<K, V> Default for IndexMap<K, V>

§

impl<K, V> Default for IntoIter<K, V>

§

impl<K, V> Default for IntoKeys<K, V>

§

impl<K, V> Default for IntoValues<K, V>

§

impl<K, V> Default for Iter<'_, K, V>

§

impl<K, V> Default for IterMut<'_, K, V>

§

impl<K, V> Default for Keys<'_, K, V>

§

impl<K, V> Default for PrimaryMap<K, V>
where K: EntityRef,

§

impl<K, V> Default for SecondaryMap<K, V>
where K: EntityRef, V: Clone + Default,

§

impl<K, V> Default for StreamMap<K, V>

§

impl<K, V> Default for Values<'_, K, V>

§

impl<K, V> Default for ValuesMut<'_, K, V>

1.70.0 · source§

impl<K, V, A> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::IntoIter<K, V, A>
where A: Allocator + Default + Clone,

1.70.0 · source§

impl<K, V, A> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::IntoKeys<K, V, A>
where A: Allocator + Default + Clone,

1.70.0 · source§

impl<K, V, A> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_map::IntoValues<K, V, A>
where A: Allocator + Default + Clone,

§

impl<K, V, L, S> Default for LruMap<K, V, L, S>
where K: Hash + PartialEq, S: BuildHasher + Default, L: Limiter<K, V> + Default,

§

impl<K, V, S> Default for BoundedBTreeMap<K, V, S>
where K: Ord, S: Get<u32>,

source§

impl<K, V, S> Default for std::collections::hash::map::HashMap<K, V, S>
where S: Default,

source§

impl<K, V, S> Default for indexmap::map::IndexMap<K, V, S>
where S: Default,

§

impl<K, V, S> Default for IndexMap<K, V, S>
where S: Default,

§

impl<K, V, S, A> Default for HashMap<K, V, S, A>
where S: Default, A: Default + Allocator + Clone,

§

impl<K, V, S, A> Default for HashMap<K, V, S, A>
where S: Default, A: Default + Allocator + Clone,

§

impl<K, V, S, A> Default for HashMap<K, V, S, A>
where S: Default, A: Default + Allocator,

§

impl<L> Default for Recorder<L>
where L: TrieLayout,

§

impl<M, T, O> Default for BitPtrRange<M, T, O>
where M: Mutability, T: BitStore, O: BitOrder,

§

impl<R> Default for BitEnd<R>
where R: Default + BitRegister,

§

impl<R> Default for BitIdx<R>
where R: Default + BitRegister,

§

impl<R> Default for BitIdxError<R>
where R: Default + BitRegister,

§

impl<R> Default for BitMask<R>
where R: Default + BitRegister,

§

impl<R> Default for BitPos<R>
where R: Default + BitRegister,

§

impl<R> Default for BitSel<R>
where R: Default + BitRegister,

§

impl<R> Default for CfaRule<R>
where R: Reader,

§

impl<R> Default for CfaRule<R>
where R: Reader,

§

impl<R> Default for DebugAbbrev<R>
where R: Default,

§

impl<R> Default for DebugAbbrev<R>
where R: Default,

§

impl<R> Default for DebugAddr<R>
where R: Default,

§

impl<R> Default for DebugAddr<R>
where R: Default,

§

impl<R> Default for DebugAranges<R>
where R: Default,

§

impl<R> Default for DebugAranges<R>
where R: Default,

§

impl<R> Default for DebugCuIndex<R>
where R: Default,

§

impl<R> Default for DebugCuIndex<R>
where R: Default,

§

impl<R> Default for DebugInfo<R>
where R: Default,

§

impl<R> Default for DebugInfo<R>
where R: Default,

§

impl<R> Default for DebugLine<R>
where R: Default,

§

impl<R> Default for DebugLine<R>
where R: Default,

§

impl<R> Default for DebugLineStr<R>
where R: Default,

§

impl<R> Default for DebugLineStr<R>
where R: Default,

§

impl<R> Default for DebugLoc<R>
where R: Default,

§

impl<R> Default for DebugLoc<R>
where R: Default,

§

impl<R> Default for DebugLocLists<R>
where R: Default,

§

impl<R> Default for DebugLocLists<R>
where R: Default,

§

impl<R> Default for DebugRanges<R>
where R: Default,

§

impl<R> Default for DebugRanges<R>
where R: Default,

§

impl<R> Default for DebugRngLists<R>
where R: Default,

§

impl<R> Default for DebugRngLists<R>
where R: Default,

§

impl<R> Default for DebugStr<R>
where R: Default,

§

impl<R> Default for DebugStr<R>
where R: Default,

§

impl<R> Default for DebugStrOffsets<R>
where R: Default,

§

impl<R> Default for DebugStrOffsets<R>
where R: Default,

§

impl<R> Default for DebugTuIndex<R>
where R: Default,

§

impl<R> Default for DebugTuIndex<R>
where R: Default,

§

impl<R> Default for DebugTypes<R>
where R: Default,

§

impl<R> Default for DebugTypes<R>
where R: Default,

§

impl<R> Default for Dwarf<R>
where R: Default,

§

impl<R> Default for Dwarf<R>
where R: Default,

§

impl<R> Default for LocationLists<R>
where R: Default,

§

impl<R> Default for LocationLists<R>
where R: Default,

§

impl<R> Default for RangeIter<R>
where R: Reader,

§

impl<R> Default for RangeIter<R>
where R: Reader,

§

impl<R> Default for RangeLists<R>
where R: Default,

§

impl<R> Default for RangeLists<R>
where R: Default,

§

impl<R, A> Default for UnwindContext<R, A>
where R: Reader, A: UnwindContextStorage<R>,

§

impl<R, A> Default for UnwindContext<R, A>
where R: Reader, A: UnwindContextStorage<R>,

§

impl<R, G, T> Default for ReentrantMutex<R, G, T>
where R: RawMutex, G: GetThreadId, T: Default + ?Sized,

§

impl<R, S> Default for UnwindTableRow<R, S>
where R: Reader, S: UnwindContextStorage<R>,

§

impl<R, S> Default for UnwindTableRow<R, S>
where R: Reader, S: UnwindContextStorage<R>,

§

impl<R, T> Default for Mutex<R, T>
where R: RawMutex, T: Default + ?Sized,

§

impl<R, T> Default for RwLock<R, T>
where R: RawRwLock, T: Default + ?Sized,

source§

impl<S> Default for Layer<S>

§

impl<St> Default for SelectAll<St>
where St: Stream + Unpin,

§

impl<Storage> Default for __BindgenBitfieldUnit<Storage>
where Storage: Default,

§

impl<Storage> Default for __BindgenBitfieldUnit<Storage>
where Storage: Default,

§

impl<Storage> Default for __BindgenBitfieldUnit<Storage>
where Storage: Default,

source§

impl<T> Default for &[T]

§

impl<T> Default for &Slice<T>

1.5.0 · source§

impl<T> Default for &mut [T]

source§

impl<T> Default for Option<T>

1.4.0 · source§

impl<T> Default for [T; 0]

1.4.0 · source§

impl<T> Default for [T; 1]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 2]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 3]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 4]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 5]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 6]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 7]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 8]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 9]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 10]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 11]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 12]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 13]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 14]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 15]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 16]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 17]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 18]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 19]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 20]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 21]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 22]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 23]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 24]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 25]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 26]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 27]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 28]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 29]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 30]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 31]
where T: Default,

1.4.0 · source§

impl<T> Default for [T; 32]
where T: Default,

source§

impl<T> Default for (T₁, T₂, …, Tₙ)
where T: Default,

This trait is implemented for tuples up to twelve items long.

source§

impl<T> Default for CostOf<T>

source§

impl<T> Default for gclient::ext::sp_runtime::app_crypto::Vec<T>

§

impl<T> Default for gclient::ext::sp_runtime::offchain::http::Request<'static, T>
where T: Default,

§

impl<T> Default for Interner<T>
where T: Ord,

§

impl<T> Default for Path<T>
where T: Form,

§

impl<T> Default for IdentityLookup<T>
where T: Default,

source§

impl<T> Default for PhantomData<T>
where T: ?Sized,

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::collections::binary_heap::IntoIter<T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_set::Iter<'_, T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_set::Range<'_, T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::collections::linked_list::IntoIter<T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::collections::linked_list::Iter<'_, T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::collections::linked_list::IterMut<'_, T>

source§

impl<T> Default for BTreeSet<T>

source§

impl<T> Default for BinaryHeap<T>
where T: Ord,

source§

impl<T> Default for LinkedList<T>

source§

impl<T> Default for VecDeque<T>

source§

impl<T> Default for Rc<T>
where T: Default,

1.10.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::rc::Weak<T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::slice::Iter<'_, T>

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::bounded::alloc::slice::IterMut<'_, T>

source§

impl<T> Default for Cell<T>
where T: Default,

source§

impl<T> Default for LazyCell<T>
where T: Default,

1.70.0 · source§

impl<T> Default for gclient::ext::sp_core::sp_std::cell::OnceCell<T>

source§

impl<T> Default for RefCell<T>
where T: Default,

source§

impl<T> Default for SyncUnsafeCell<T>
where T: Default,

1.10.0 · source§

impl<T> Default for UnsafeCell<T>
where T: Default,

1.19.0 · source§

impl<T> Default for Reverse<T>
where T: Default,

1.2.0 · source§

impl<T> Default for gclient::ext::sp_core::sp_std::iter::Empty<T>

1.20.0 · source§

impl<T> Default for ManuallyDrop<T>
where T: Default + ?Sized,

1.74.0 · source§

impl<T> Default for Saturating<T>
where T: Default,

source§

impl<T> Default for Wrapping<T>
where T: Default,

source§

impl<T> Default for gclient::ext::sp_core::sp_std::prelude::Box<[T]>

§

impl<T> Default for gclient::ext::sp_core::sp_std::prelude::Box<Slice<T>>

source§

impl<T> Default for gclient::ext::sp_core::sp_std::prelude::Box<T>
where T: Default,

source§

impl<T> Default for AtomicPtr<T>

source§

impl<T> Default for Arc<T>
where T: Default,

source§

impl<T> Default for Exclusive<T>
where T: Default + ?Sized,

source§

impl<T> Default for LazyLock<T>
where T: Default,

1.10.0 · source§

impl<T> Default for gclient::ext::sp_core::sp_std::sync::Mutex<T>
where T: Default + ?Sized,

1.70.0 · source§

impl<T> Default for OnceLock<T>

1.10.0 · source§

impl<T> Default for gclient::ext::sp_core::sp_std::sync::RwLock<T>
where T: Default,

1.10.0 · source§

impl<T> Default for gclient::ext::sp_core::sp_std::sync::Weak<T>

1.62.0 · source§

impl<T> Default for AssertUnwindSafe<T>
where T: Default,

source§

impl<T> Default for std::io::cursor::Cursor<T>
where T: Default,

source§

impl<T> Default for HeaderMap<T>

source§

impl<T> Default for http::request::Request<T>
where T: Default,

source§

impl<T> Default for Response<T>
where T: Default,

source§

impl<T> Default for Ratio<T>
where T: Clone + Integer,

source§

impl<T> Default for Pool<T>
where T: Clear + Default,

source§

impl<T> Default for sharded_slab::Slab<T>

source§

impl<T> Default for TryLock<T>
where T: Default,

§

impl<T> Default for AHashSet<T>

NOTE: For safety this trait impl is only available available if either of the flags runtime-rng (on by default) or compile-time-rng are enabled. This is to prevent weakly keyed maps from being accidentally created. Instead one of constructors for [RandomState] must be used.

§

impl<T> Default for Box<T>
where T: Default,

§

impl<T> Default for CachedThreadLocal<T>
where T: Send,

§

impl<T> Default for CheckMortalityParams<T>
where T: Config,

§

impl<T> Default for CoreWrapper<T>
where T: Default + BufferKindUser, <T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> + Default, <<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero, <T as BufferKindUser>::BufferKind: Default,

§

impl<T> Default for Crossing<T>
where T: Default + Encode + Decode,

§

impl<T> Default for Cursor<T>
where T: Default,

§

impl<T> Default for DefaultExtrinsicParamsBuilder<T>
where T: Config,

§

impl<T> Default for EntityList<T>
where T: EntityRef + ReservedValue,

Create an empty list.

§

impl<T> Default for IndexMap<T>
where T: Default,

§

impl<T> Default for IndexMap<T>
where T: Default,

§

impl<T> Default for IndexSet<T>

§

impl<T> Default for IntervalsTree<T>
where T: Copy,

§

impl<T> Default for IntoIter<T>

§

impl<T> Default for Iter<'_, T>

§

impl<T> Default for JoinSet<T>

§

impl<T> Default for Lazy<T>
where T: Default,

§

impl<T> Default for Lazy<T>
where T: Default,

§

impl<T> Default for Linker<T>

§

impl<T> Default for ListPool<T>
where T: EntityRef + ReservedValue,

§

impl<T> Default for Mutex<T>
where T: Default + ?Sized,

§

impl<T> Default for Mutex<T>
where T: Default + ?Sized,

§

impl<T> Default for Mutex<T>
where T: Default,

§

impl<T> Default for Mutex<T>
where T: Default,

§

impl<T> Default for NoHashHasher<T>

§

impl<T> Default for NonEmpty<T>
where T: Default,

§

impl<T> Default for OnceBox<T>

§

impl<T> Default for OnceCell<T>

§

impl<T> Default for OnceCell<T>

§

impl<T> Default for OnceCell<T>

§

impl<T> Default for PackedOption<T>
where T: ReservedValue,

§

impl<T> Default for RwLock<T>
where T: Default + ?Sized,

§

impl<T> Default for RwLock<T>
where T: Default + ?Sized,

§

impl<T> Default for RwLock<T>
where T: Default + ?Sized,

§

impl<T> Default for Slab<T>

§

impl<T> Default for Store<T>
where T: Default,

§

impl<T> Default for SymbolMap<T>
where T: Default + SymbolMapEntry,

§

impl<T> Default for SymbolMap<T>
where T: Default + SymbolMapEntry,

§

impl<T> Default for ThreadLocal<T>
where T: Send,

§

impl<T> Default for TrieRoot<T>
where T: TrieLayout,

§

impl<T> Default for TrieRootPrint<T>
where T: TrieLayout,

§

impl<T> Default for TrieRootUnhashed<T>
where T: TrieLayout,

§

impl<T> Default for Unalign<T>
where T: Default,

§

impl<T> Default for UnstableBackendBuilder<T>
where T: Config,

§

impl<T> Default for Vec<T>

§

impl<T> Default for WrapperKeepOpaque<T>

§

impl<T> Default for XofReaderCoreWrapper<T>
where T: Default + XofReaderCore, <T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>> + Default, <<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

§

impl<T> Default for __BindgenUnionField<T>

§

impl<T> Default for __BindgenUnionField<T>

§

impl<T> Default for __IncompleteArrayField<T>
where T: Default,

§

impl<T> Default for __IncompleteArrayField<T>
where T: Default,

§

impl<T> Default for __IncompleteArrayField<T>
where T: Default,

1.70.0 · source§

impl<T, A> Default for gclient::ext::sp_core::bounded::alloc::collections::btree_set::IntoIter<T, A>
where A: Allocator + Default + Clone,

1.70.0 · source§

impl<T, A> Default for gclient::ext::sp_core::bounded::alloc::vec::IntoIter<T, A>
where A: Allocator + Default,

§

impl<T, A> Default for Box<[T], A>
where A: Allocator + Default,

§

impl<T, A> Default for HashTable<T, A>
where A: Allocator + Default,

§

impl<T, A> Default for RawTable<T, A>
where A: Allocator + Clone + Default,

§

impl<T, A> Default for RawTable<T, A>
where A: Allocator + Clone + Default,

§

impl<T, A> Default for RawTable<T, A>
where A: Allocator + Default,

source§

impl<T, E, const N: usize> Default for LimitedVec<T, E, N>
where T: Default, E: Default,

§

impl<T, N> Default for GenericArray<T, N>
where T: Default, N: ArrayLength<T>,

§

impl<T, N> Default for GenericArray<T, N>
where T: Default, N: ArrayLength<T>,

§

impl<T, O> Default for &BitSlice<T, O>
where T: BitStore, O: BitOrder,

§

impl<T, O> Default for &mut BitSlice<T, O>
where T: BitStore, O: BitOrder,

§

impl<T, O> Default for BitBox<T, O>
where T: BitStore, O: BitOrder,

§

impl<T, O> Default for BitVec<T, O>
where T: BitStore, O: BitOrder,

§

impl<T, O> Default for IterOnes<'_, T, O>
where T: BitStore, O: BitOrder,

§

impl<T, O> Default for IterZeros<'_, T, O>
where T: BitStore, O: BitOrder,

§

impl<T, OutSize, O> Default for CtVariableCoreWrapper<T, OutSize, O>
where T: VariableOutputCore, OutSize: ArrayLength<u8> + IsLessOrEqual<<T as OutputSizeUser>::OutputSize>, <OutSize as IsLessOrEqual<<T as OutputSizeUser>::OutputSize>>::Output: NonZero, <T as BlockSizeUser>::BlockSize: IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>, <<T as BlockSizeUser>::BlockSize as IsLess<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>::Output: NonZero,

§

impl<T, S> Default for BoundedBTreeSet<T, S>
where T: Ord, S: Get<u32>,

§

impl<T, S> Default for BoundedVec<T, S>

§

impl<T, S> Default for WeakBoundedVec<T, S>

source§

impl<T, S> Default for std::collections::hash::set::HashSet<T, S>
where S: Default,

source§

impl<T, S> Default for indexmap::set::IndexSet<T, S>
where S: Default,

§

impl<T, S> Default for IndexSet<T, S>
where S: Default,

§

impl<T, S, A> Default for HashSet<T, S, A>
where S: Default, A: Default + Allocator + Clone,

§

impl<T, S, A> Default for HashSet<T, S, A>
where S: Default, A: Default + Allocator + Clone,

§

impl<T, S, A> Default for HashSet<T, S, A>
where S: Default, A: Default + Allocator,

source§

impl<T, const CAP: usize> Default for arrayvec::arrayvec::ArrayVec<T, CAP>

source§

impl<T, const N: usize> Default for Mask<T, N>

source§

impl<T, const N: usize> Default for Simd<T, N>

source§

impl<U> Default for NInt<U>
where U: Default + Unsigned + NonZero,

source§

impl<U> Default for PInt<U>
where U: Default + Unsigned + NonZero,

source§

impl<U, B> Default for UInt<U, B>
where U: Default, B: Default,

§

impl<W> Default for DebugAbbrev<W>
where W: Default + Writer,

§

impl<W> Default for DebugFrame<W>
where W: Default + Writer,

§

impl<W> Default for DebugInfo<W>
where W: Default + Writer,

§

impl<W> Default for DebugLine<W>
where W: Default + Writer,

§

impl<W> Default for DebugLineStr<W>
where W: Default + Writer,

§

impl<W> Default for DebugLoc<W>
where W: Default + Writer,

§

impl<W> Default for DebugLocLists<W>
where W: Default + Writer,

§

impl<W> Default for DebugRanges<W>
where W: Default + Writer,

§

impl<W> Default for DebugRngLists<W>
where W: Default + Writer,

§

impl<W> Default for DebugStr<W>
where W: Default + Writer,

§

impl<W> Default for EhFrame<W>
where W: Default + Writer,

§

impl<W> Default for Sections<W>
where W: Default + Writer,

§

impl<Z> Default for Zeroizing<Z>
where Z: Default + Zeroize,

source§

impl<const CAP: usize> Default for arrayvec::array_string::ArrayString<CAP>

source§

impl<const SIZE: u32> Default for Page<SIZE>

source§

impl<const SIZE: u32> Default for PagesAmount<SIZE>

§

impl<const T: bool> Default for ConstBool<T>

§

impl<const T: i8> Default for ConstI8<T>

§

impl<const T: i16> Default for ConstI16<T>

§

impl<const T: i32> Default for ConstI32<T>

§

impl<const T: i64> Default for ConstI64<T>

§

impl<const T: i128> Default for ConstI128<T>

§

impl<const T: u8> Default for ConstU8<T>

§

impl<const T: u16> Default for ConstU16<T>

§

impl<const T: u32> Default for ConstU32<T>

§

impl<const T: u64> Default for ConstU64<T>

§

impl<const T: u128> Default for ConstU128<T>