wasmtime_environ::__core::prelude::rust_2024

Trait Default

Source
pub trait Default: Sized {
    // Required method
    fn default() -> Self;
}
๐Ÿ”ฌThis is a nightly-only experimental API. (prelude_2024)
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.

The #[default] attribute was stabilized in Rust 1.62.0.

ยง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ยง

1.0.0 ยท 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 }
}

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง

1.0.0 ยท 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 MemoryInitialization

1.0.0 ยท Sourceยง

impl Default for AsciiChar

Sourceยง

impl Default for DwarfFileType

Sourceยง

impl Default for RunTimeEndian

Sourceยง

impl Default for Pointer

Sourceยง

impl Default for Prefilter

Sourceยง

impl Default for Endianness

Sourceยง

impl Default for ColorChoice

The default is Auto.

1.0.0 ยท Sourceยง

impl Default for bool

1.0.0 ยท Sourceยง

impl Default for char

1.0.0 ยท Sourceยง

impl Default for f16

1.0.0 ยท Sourceยง

impl Default for f32

1.0.0 ยท Sourceยง

impl Default for f64

1.0.0 ยท Sourceยง

impl Default for f128

1.0.0 ยท Sourceยง

impl Default for i8

1.0.0 ยท Sourceยง

impl Default for i16

1.0.0 ยท Sourceยง

impl Default for i32

1.0.0 ยท Sourceยง

impl Default for i64

1.0.0 ยท Sourceยง

impl Default for i128

1.0.0 ยท Sourceยง

impl Default for isize

1.0.0 ยท Sourceยง

impl Default for u8

1.0.0 ยท Sourceยง

impl Default for u16

1.0.0 ยท Sourceยง

impl Default for u32

1.0.0 ยท Sourceยง

impl Default for u64

1.0.0 ยท Sourceยง

impl Default for u128

1.0.0 ยท Sourceยง

impl Default for ()

1.0.0 ยท Sourceยง

impl Default for usize

Sourceยง

impl Default for ComponentDfg

Sourceยง

impl Default for CanonicalAbiInfo

Sourceยง

impl Default for wasmtime_environ::component::Component

Sourceยง

impl Default for ComponentTypes

Sourceยง

impl Default for ResourcesBuilder

Sourceยง

impl Default for TypeComponent

Sourceยง

impl Default for TypeComponentInstance

Sourceยง

impl Default for TypeModule

1.17.0 ยท Sourceยง

impl Default for Box<str>

1.17.0 ยท Sourceยง

impl Default for Box<CStr>

1.17.0 ยท Sourceยง

impl Default for Box<OsStr>

1.0.0 ยท Sourceยง

impl Default for String

Sourceยง

impl Default for AddressMapSection

Sourceยง

impl Default for FilePos

Sourceยง

impl Default for wasmtime_environ::Module

Sourceยง

impl Default for ModuleTypes

Sourceยง

impl Default for TableInitialization

Sourceยง

impl Default for TrapEncodingBuilder

Sourceยง

impl Default for VMSharedTypeIndex

Sourceยง

impl Default for WasmFileInfo

Sourceยง

impl Default for WasmFunctionInfo

Sourceยง

impl Default for wasmtime_environ::wasmparser::collections::hash::RandomState

Sourceยง

impl Default for FuncValidatorAllocations

Sourceยง

impl Default for Parser

Sourceยง

impl Default for SegmentFlags

Sourceยง

impl Default for SymbolFlags

Sourceยง

impl Default for Validator

Sourceยง

impl Default for ValidatorId

Sourceยง

impl Default for WasmFeatures

Sourceยง

impl Default for Remapping

1.0.0 ยท Sourceยง

impl Default for Error

1.0.0 ยท Sourceยง

impl Default for SipHasher

1.33.0 ยท Sourceยง

impl Default for PhantomPinned

Sourceยง

impl Default for Alignment

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

1.0.0 ยท Sourceยง

impl Default for RangeFull

1.0.0 ยท 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

1.0.0 ยท 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

1.0.0 ยท Sourceยง

impl Default for AtomicUsize

1.3.0 ยท Sourceยง

impl Default for Duration

Sourceยง

impl Default for Global

1.10.0 ยท Sourceยง

impl Default for CString

1.80.0 ยท Sourceยง

impl Default for Rc<str>

1.80.0 ยท Sourceยง

impl Default for Rc<CStr>

1.80.0 ยท Sourceยง

impl Default for Arc<str>

1.80.0 ยท Sourceยง

impl Default for Arc<CStr>

1.28.0 ยท Sourceยง

impl Default for System

1.9.0 ยท Sourceยง

impl Default for OsString

1.75.0 ยท Sourceยง

impl Default for FileTimes

1.13.0 ยท Sourceยง

impl Default for DefaultHasher

1.7.0 ยท Sourceยง

impl Default for std::hash::random::RandomState

1.0.0 ยท Sourceยง

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

1.0.0 ยท 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 DefaultRandomSource

1.10.0 ยท Sourceยง

impl Default for Condvar

Sourceยง

impl Default for AHasher

Provides a default Hasher with fixed keys. This is typically used in conjunction with BuildHasherDefault to create AHashers 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);
Sourceยง

impl Default for anyhow::Chain<'_>

Sourceยง

impl Default for EncoderState

Sourceยง

impl Default for CvQualifiers

Sourceยง

impl Default for DemangleOptions

Sourceยง

impl Default for ParseOptions

Sourceยง

impl Default for CompoundBitSet

Sourceยง

impl Default for LineEncoding

Sourceยง

impl Default for gimli::endianity::BigEndian

Sourceยง

impl Default for gimli::endianity::LittleEndian

Sourceยง

impl Default for Abbreviations

Sourceยง

impl Default for AbbreviationsCache

Sourceยง

impl Default for Augmentation

Sourceยง

impl Default for BaseAddresses

Sourceยง

impl Default for SectionBaseAddresses

Sourceยง

impl Default for FrameTable

Sourceยง

impl Default for gimli::write::dwarf::Dwarf

Sourceยง

impl Default for FileInfo

Sourceยง

impl Default for LocationListTable

Sourceยง

impl Default for Expression

Sourceยง

impl Default for RangeListTable

Sourceยง

impl Default for LineStringTable

Sourceยง

impl Default for gimli::write::str::StringTable

Sourceยง

impl Default for DebugInfoOffsets

Sourceยง

impl Default for UnitTable

Sourceยง

impl Default for FinderBuilder

Sourceยง

impl Default for object::endian::BigEndian

Sourceยง

impl Default for object::endian::LittleEndian

Sourceยง

impl Default for RelocationSections

Sourceยง

impl Default for VersionIndex

Sourceยง

impl Default for RelocationMap

Sourceยง

impl Default for Class

Sourceยง

impl Default for SectionIndex

Sourceยง

impl Default for SymbolIndex

Sourceยง

impl Default for OnceBool

Sourceยง

impl Default for OnceNonZeroUsize

Sourceยง

impl Default for AllocVec

Sourceยง

impl Default for Size

Sourceยง

impl Default for BuildMetadata

Sourceยง

impl Default for Prerelease

Sourceยง

impl Default for VersionReq

The default VersionReq is the same as VersionReq::STAR.

Sourceยง

impl Default for IgnoredAny

Sourceยง

impl Default for DefaultToHost

Sourceยง

impl Default for DefaultToUnknown

Sourceยง

impl Default for ColorSpec

Sourceยง

impl Default for ComponentAliasSection

Sourceยง

impl Default for ComponentBuilder

Sourceยง

impl Default for CanonicalFunctionSection

Sourceยง

impl Default for ComponentExportSection

Sourceยง

impl Default for ComponentImportSection

Sourceยง

impl Default for ComponentInstanceSection

Sourceยง

impl Default for InstanceSection

Sourceยง

impl Default for ComponentNameSection

Sourceยง

impl Default for wasm_encoder::component::Component

Sourceยง

impl Default for ComponentType

Sourceยง

impl Default for ComponentTypeSection

Sourceยง

impl Default for CoreTypeSection

Sourceยง

impl Default for InstanceType

Sourceยง

impl Default for ModuleType

Sourceยง

impl Default for CodeSection

Sourceยง

impl Default for DataSection

Sourceยง

impl Default for CoreDumpSection

Sourceยง

impl Default for CoreDumpStackSection

Sourceยง

impl Default for ElementSection

Sourceยง

impl Default for ExportSection

Sourceยง

impl Default for FunctionSection

Sourceยง

impl Default for GlobalSection

Sourceยง

impl Default for ImportSection

Sourceยง

impl Default for LinkingSection

Sourceยง

impl Default for wasm_encoder::core::linking::SymbolTable

Sourceยง

impl Default for MemorySection

Sourceยง

impl Default for IndirectNameMap

Sourceยง

impl Default for wasm_encoder::core::names::NameMap

Sourceยง

impl Default for wasm_encoder::core::names::NameSection

Sourceยง

impl Default for ProducersField

Sourceยง

impl Default for ProducersSection

Sourceยง

impl Default for wasm_encoder::core::Module

Sourceยง

impl Default for TableSection

Sourceยง

impl Default for TagSection

Sourceยง

impl Default for TypeSection

Sourceยง

impl Default for Config

Sourceยง

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

Sourceยง

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

1.70.0 ยท Sourceยง

impl<'a, K, V> Default for alloc::collections::btree::map::Iter<'a, K, V>
where K: 'a, V: 'a,

1.70.0 ยท Sourceยง

impl<'a, K, V> Default for alloc::collections::btree::map::IterMut<'a, K, V>
where K: 'a, V: 'a,

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

impl<'data, Elf, R> Default for object::read::elf::symbol::SymbolTable<'data, Elf, R>
where Elf: FileHeader, R: ReadRef<'data>,

Sourceยง

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

Sourceยง

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

Sourceยง

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

1.70.0 ยท Sourceยง

impl<A, B> Default for wasmtime_environ::__core::iter::Chain<A, B>
where A: Default, B: Default,

1.11.0 ยท Sourceยง

impl<B> Default for Cow<'_, B>
where B: ToOwned + ?Sized, <B as ToOwned>::Owned: Default,

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

1.7.0 ยท Sourceยง

impl<H> Default for BuildHasherDefault<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,

1.0.0 ยท Sourceยง

impl<Idx> Default for wasmtime_environ::__core::range::legacy::Range<Idx>
where Idx: Default,

Sourceยง

impl<Idx> Default for wasmtime_environ::__core::range::Range<Idx>
where Idx: Default,

Sourceยง

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

1.83.0 ยท Sourceยง

impl<K> Default for std::collections::hash::set::IntoIter<K>

1.83.0 ยท Sourceยง

impl<K> Default for std::collections::hash::set::Iter<'_, K>

Sourceยง

impl<K, V> Default for &indexmap::map::slice::Slice<K, V>

Sourceยง

impl<K, V> Default for &mut indexmap::map::slice::Slice<K, V>

Sourceยง

impl<K, V> Default for wasmtime_environ::component::NameMap<K, V>
where K: Clone + Hash + Eq + Ord,

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

impl<K, V> Default for wasmtime_environ::wasmparser::collections::IndexMap<K, V>

Sourceยง

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

1.0.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<K, V> Default for alloc::collections::btree::map::Keys<'_, K, V>

1.70.0 ยท Sourceยง

impl<K, V> Default for alloc::collections::btree::map::Range<'_, K, V>

1.82.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<K, V> Default for alloc::collections::btree::map::Values<'_, K, V>

1.82.0 ยท Sourceยง

impl<K, V> Default for alloc::collections::btree::map::ValuesMut<'_, K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::IntoIter<K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::IntoKeys<K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::IntoValues<K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::Iter<'_, K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::IterMut<'_, K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::Keys<'_, K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::Values<'_, K, V>

1.83.0 ยท Sourceยง

impl<K, V> Default for std::collections::hash::map::ValuesMut<'_, K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::IntoIter<K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::IntoKeys<K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::IntoValues<K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::Iter<'_, K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::IterMut<'_, K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::Keys<'_, K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::Values<'_, K, V>

Sourceยง

impl<K, V> Default for indexmap::map::iter::ValuesMut<'_, K, V>

1.70.0 ยท Sourceยง

impl<K, V, A> Default for alloc::collections::btree::map::IntoIter<K, V, A>
where A: Allocator + Default + Clone,

1.70.0 ยท Sourceยง

impl<K, V, A> Default for alloc::collections::btree::map::IntoKeys<K, V, A>
where A: Allocator + Default + Clone,

1.70.0 ยท Sourceยง

impl<K, V, A> Default for alloc::collections::btree::map::IntoValues<K, V, A>
where A: Allocator + Default + Clone,

1.0.0 ยท 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,

Sourceยง

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

Sourceยง

impl<K: EntityRef, V> Default for Intern<K, V>

Sourceยง

impl<R> Default for gimli::read::abbrev::DebugAbbrev<R>
where R: Default,

Sourceยง

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

Sourceยง

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

Sourceยง

impl<R> Default for gimli::read::dwarf::Dwarf<R>
where R: Default,

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

impl<R> Default for gimli::read::line::DebugLine<R>
where R: Default,

Sourceยง

impl<R> Default for gimli::read::loclists::DebugLoc<R>
where R: Default,

Sourceยง

impl<R> Default for gimli::read::loclists::DebugLocLists<R>
where R: Default,

Sourceยง

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

Sourceยง

impl<R> Default for gimli::read::rnglists::DebugRanges<R>
where R: Default,

Sourceยง

impl<R> Default for gimli::read::rnglists::DebugRngLists<R>
where R: Default,

Sourceยง

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

Sourceยง

impl<R> Default for gimli::read::str::DebugLineStr<R>
where R: Default,

Sourceยง

impl<R> Default for gimli::read::str::DebugStr<R>
where R: Default,

Sourceยง

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

Sourceยง

impl<R> Default for gimli::read::unit::DebugInfo<R>
where R: Default,

Sourceยง

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

1.0.0 ยท Sourceยง

impl<T> Default for &[T]

Sourceยง

impl<T> Default for &indexmap::set::slice::Slice<T>

1.5.0 ยท Sourceยง

impl<T> Default for &mut [T]

1.0.0 ยท Sourceยง

impl<T> Default for Option<T>

Sourceยง

impl<T> Default for CfaRule<T>
where T: ReaderOffset,

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,

1.0.0 ยท 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 PackedOption<T>
where T: ReservedValue,

1.0.0 ยท Sourceยง

impl<T> Default for Box<[T]>

Sourceยง

impl<T> Default for Box<Slice<T>>

1.0.0 ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<T> Default for Vec<T>

Sourceยง

impl<T> Default for EntityList<T>

Create an empty list.

Sourceยง

impl<T> Default for ListPool<T>

Sourceยง

impl<T> Default for wasmtime_environ::wasmparser::collections::IndexSet<T>

Sourceยง

impl<T> Default for Set<T>

1.0.0 ยท Sourceยง

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

1.80.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<T> Default for wasmtime_environ::__core::cell::OnceCell<T>

1.0.0 ยท 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 wasmtime_environ::__core::iter::Empty<T>

1.0.0 ยท Sourceยง

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

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,

1.0.0 ยท Sourceยง

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

1.62.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<T> Default for wasmtime_environ::__core::slice::Iter<'_, T>

1.70.0 ยท Sourceยง

impl<T> Default for wasmtime_environ::__core::slice::IterMut<'_, T>

1.0.0 ยท Sourceยง

impl<T> Default for AtomicPtr<T>

Sourceยง

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

1.0.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<T> Default for alloc::collections::binary_heap::IntoIter<T>

1.82.0 ยท Sourceยง

impl<T> Default for alloc::collections::binary_heap::Iter<'_, T>

1.0.0 ยท Sourceยง

impl<T> Default for BTreeSet<T>

1.70.0 ยท Sourceยง

impl<T> Default for alloc::collections::btree::set::Iter<'_, T>

1.70.0 ยท Sourceยง

impl<T> Default for alloc::collections::btree::set::Range<'_, T>

1.70.0 ยท Sourceยง

impl<T> Default for alloc::collections::linked_list::IntoIter<T>

1.70.0 ยท Sourceยง

impl<T> Default for alloc::collections::linked_list::Iter<'_, T>

1.70.0 ยท Sourceยง

impl<T> Default for alloc::collections::linked_list::IterMut<'_, T>

1.0.0 ยท Sourceยง

impl<T> Default for LinkedList<T>

1.82.0 ยท Sourceยง

impl<T> Default for alloc::collections::vec_deque::iter::Iter<'_, T>

1.82.0 ยท Sourceยง

impl<T> Default for alloc::collections::vec_deque::iter_mut::IterMut<'_, T>

1.0.0 ยท Sourceยง

impl<T> Default for VecDeque<T>

1.80.0 ยท Sourceยง

impl<T> Default for Rc<[T]>

1.0.0 ยท Sourceยง

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

1.10.0 ยท Sourceยง

impl<T> Default for alloc::rc::Weak<T>

1.80.0 ยท Sourceยง

impl<T> Default for Arc<[T]>

1.0.0 ยท Sourceยง

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

1.10.0 ยท Sourceยง

impl<T> Default for alloc::sync::Weak<T>

1.0.0 ยท Sourceยง

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

1.80.0 ยท Sourceยง

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

1.10.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<T> Default for OnceLock<T>

Sourceยง

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

1.10.0 ยท Sourceยง

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

Sourceยง

impl<T> Default for ScalarBitSet<T>

Sourceยง

impl<T> Default for indexmap::set::iter::IntoIter<T>

Sourceยง

impl<T> Default for indexmap::set::iter::Iter<'_, T>

Sourceยง

impl<T> Default for SymbolMap<T>

Sourceยง

impl<T> Default for OnceBox<T>

Sourceยง

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

Sourceยง

impl<T> Default for once_cell::unsync::OnceCell<T>

Sourceยง

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

1.70.0 ยท Sourceยง

impl<T, A> Default for wasmtime_environ::prelude::vec::IntoIter<T, A>
where A: Allocator + Default,

1.70.0 ยท Sourceยง

impl<T, A> Default for alloc::collections::btree::set::IntoIter<T, A>
where A: Allocator + Default + Clone,

Sourceยง

impl<T, A> Default for UnwindContext<T, A>

Sourceยง

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

Sourceยง

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

1.0.0 ยท Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

impl<T: Default> Default for AllCallFunc<T>

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

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