pub trait Default {
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 struct
s
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 derive
d, it will use the default value for each field’s type.
enum
s
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
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 }
}
Implementors
impl Default for &'static HtmlStr
impl Default for AggregatedIE
impl Default for AssetUrlKey
impl Default for otter_nodejs_tests::BigEndian
impl Default for otter_nodejs_tests::LittleEndian
impl Default for OccultationKindGeneral<(OccDisplacement, ZCoord)>
impl Default for PathResolveContext
impl Default for PathResolveMethod
impl Default for PieceAngle
impl Default for PieceMoveable
impl Default for PresentationLayout
impl Default for ProgressUpdateMode
impl Default for Target
impl Default for TimestampPrecision
The default timestamp precision is seconds.
impl Default for WriteStyle
impl Default for ErrorChannel
impl Default for otter_nodejs_tests::otter_support::imports::progress::Value
impl Default for PieceLabelPlace
impl Default for otter_nodejs_tests::tera::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);
impl Default for IpNet
impl Default for SpecLabels
impl Default for Encoding
impl Default for bool
impl Default for char
impl Default for f32
impl Default for f64
impl Default for i8
impl Default for i16
impl Default for i32
impl Default for i64
impl Default for i128
impl Default for isize
impl Default for u8
impl Default for u16
impl Default for u32
impl Default for u64
impl Default for u128
impl Default for ()
impl Default for usize
impl Default for HashCache
impl Default for Index
impl Default for otter_nodejs_tests::env_logger::filter::Builder
impl Default for otter_nodejs_tests::env_logger::Builder
impl Default for MatchOptions
impl Default for Pattern
impl Default for otter_nodejs_tests::materials_format::Version
impl Default for PlHeld
impl Default for PlHist
impl Default for OnceBool
impl Default for OnceNonZeroUsize
impl Default for Parsed
impl Default for B0
impl Default for B1
impl Default for Equal
impl Default for Greater
impl Default for Less
impl Default for UTerm
impl Default for Z0
impl Default for Eager
impl Default for otter_nodejs_tests::otter_support::crates::digest::block_buffer::Lazy
impl Default for InvalidBufferSize
impl Default for otter_nodejs_tests::otter_support::crates::digest::InvalidOutputSize
impl Default for MacError
impl Default for DeferredNow
impl Default for FileSpec
impl Default for LogSpecBuilder
impl Default for CpuSet
impl Default for Dqblk
impl Default for QuotaValidFlags
impl Default for FdSet
impl Default for UnixCredentials
impl Default for FsFlags
impl Default for IgnoredAny
impl Default for otter_nodejs_tests::otter_support::crates::parking_lot::Condvar
impl Default for Once
impl Default for OsRng
impl Default for ThreadRng
impl Default for DefaultKey
impl Default for KeyData
impl Default for otter_nodejs_tests::otter_support::crates::toml::value::Map<String, Value>
impl Default for DefaultHasher
impl Default for RandomState
impl Default for otter_nodejs_tests::otter_support::imports::io::Empty
impl Default for Sink
impl Default for Registry
impl Default for otter_nodejs_tests::sshkeys::Global
impl Default for Id
impl Default for PerScope
impl Default for AccountId
impl Default for Accounts
impl Default for AtomicBool
impl Default for ClientId
impl Default for ColourSpec
impl Default for CompassAngle
impl Default for otter_nodejs_tests::Condvar
impl Default for otter_nodejs_tests::Duration
impl Default for FaceId
impl Default for FakeRngSpec
impl Default for FakeTimeConfig
impl Default for FakeTimeSpec
impl Default for FastSplitId
impl Default for GOccults
impl Default for GPieces
impl Default for otter_nodejs_tests::Global
impl Default for Html
impl Default for IFastSplits
impl Default for IOccults
impl Default for InstanceBundles
impl Default for LinksTable
impl Default for LogSpecification
impl Default for Notches
impl Default for OccId
impl Default for OccultIlkId
impl Default for OccultIlks
impl Default for PathBuf
impl Default for PerPlayerIdMap
impl Default for PieceAliases
impl Default for PieceId
impl Default for PieceOccult
impl Default for PieceSpecialProperties
impl Default for PlayerId
impl Default for Tera
impl Default for TextOptionsSpec
impl Default for Timezone
impl Default for UrlSpec
impl Default for VisiblePieceId
impl Default for WholeServerConfig
impl Default for ZCoord
impl Default for WS
impl Default for Context
impl Default for otter_nodejs_tests::tera::Map<String, Value>
impl Default for UnixSocketAddr
impl Default for DateTime
impl Default for FileOptions
impl Default for Error
impl Default for otter_nodejs_tests::inventory::core::hash::SipHasher
impl Default for PhantomPinned
impl Default for RangeFull
impl Default for AtomicI8
impl Default for AtomicI16
impl Default for AtomicI32
impl Default for AtomicI64
impl Default for AtomicIsize
impl Default for AtomicU8
impl Default for AtomicU16
impl Default for AtomicU32
impl Default for AtomicU64
impl Default for AtomicUsize
impl Default for alloc::alloc::Global
impl Default for Box<str, Global>
impl Default for Box<OsStr, Global>
impl Default for Box<CStr, Global>
impl Default for CString
impl Default for String
impl Default for System
impl Default for OsString
impl Default for std::sync::condvar::Condvar
impl Default for Adler32
impl Default for backtrace::capture::Backtrace
impl Default for bzip2::Compression
impl Default for Crc
impl Default for GzBuilder
impl Default for GzHeader
impl Default for flate2::Compression
impl Default for h2::client::Builder
impl Default for h2::server::Builder
impl Default for SizeHint
impl Default for Extensions
impl Default for Method
impl Default for http::request::Builder
impl Default for http::response::Builder
impl Default for StatusCode
impl Default for http::uri::builder::Builder
impl Default for Parts
impl Default for Uri
Returns a Uri
representing /
impl Default for http::version::Version
impl Default for Ipv4Net
impl Default for Ipv6Net
impl Default for itoa::Buffer
impl Default for BigInt
impl Default for BigUint
impl Default for Sha1
impl Default for openssl::sha::Sha224
impl Default for openssl::sha::Sha256
impl Default for openssl::sha::Sha384
impl Default for openssl::sha::Sha512
impl Default for AuthorityKeyIdentifier
impl Default for BasicConstraints
impl Default for ExtendedKeyUsage
impl Default for KeyUsage
impl Default for SubjectAlternativeName
impl Default for SubjectKeyIdentifier
impl Default for LabelSpec
impl Default for OccultSpec
impl Default for ParamsString
impl Default for Params
impl Default for reqwest::async_impl::client::Client
impl Default for reqwest::async_impl::client::ClientBuilder
impl Default for reqwest::blocking::client::Client
impl Default for reqwest::blocking::client::ClientBuilder
impl Default for Policy
impl Default for ryu::buffer::Buffer
impl Default for Flexible
impl Default for Lowercase
impl Default for Padded
impl Default for PreferMany
impl Default for PreferOne
impl Default for Strict
impl Default for Unpadded
impl Default for Uppercase
impl Default for BorrowCow
impl Default for serde_with::Bytes
impl Default for BytesOrString
impl Default for CommaSeparator
impl Default for DisplayFromStr
impl Default for NoneAsEmptyString
impl Default for Same
impl Default for SpaceSeparator
impl Default for Sha1Core
impl Default for Dispatch
impl Default for NoSubscriber
impl Default for Abbreviations
impl Default for AdaptiveFilterType
impl Default for AhoCorasickBuilder
impl Default for AnyDelimiterCodec
impl Default for AtomicWaker
impl Default for Augmentation
impl Default for BString
impl Default for Backoff
impl Default for Backtrace
impl Default for BaseAddresses
impl Default for BigEndian
impl Default for BigEndian
impl Default for Body
impl Default for Builder
impl Default for Builder
impl Default for Builder
impl Default for Builder
impl Default for ByteBuf
impl Default for Bytes
impl Default for BytesCodec
impl Default for BytesMut
impl Default for CancellationToken
impl Default for ClassBytesRange
impl Default for ClassUnicodeRange
impl Default for Client<HttpConnector<GaiResolver>, Body>
impl Default for ColorSpec
impl Default for Compression
impl Default for CompressionOptions
impl Default for CompressionType
impl Default for CompressorOxide
impl Default for Config
impl Default for Config
The defaults are that of https://url.spec.whatwg.org/#idna
impl Default for Day
Creates a modifier that indicates the value is padded with zeroes.
impl Default for DecompressorOxide
impl Default for DirBuilder
impl Default for Duration
impl Default for DwarfFileType
impl Default for DynamicImage
impl Default for Endianness
impl Default for Errors
impl Default for FilterType
impl Default for FilterType
impl Default for FinderBuilder
impl Default for FnvHasher
impl Default for FrameControl
impl Default for GlobSet
impl Default for GraphemeClusterBreak
impl Default for Hash128
impl Default for Hasher
impl Default for Hour
Creates a modifier that indicates the value is padded with zeroes and has the 24-hour representation.
impl Default for Idna
impl Default for ImageSectionHeader
impl Default for InflateState
impl Default for InvalidOutputSize
impl Default for LengthDelimitedCodec
impl Default for LimitSupport
impl Default for Limits
impl Default for Limits
impl Default for LineEncoding
impl Default for LinesCodec
impl Default for LittleEndian
impl Default for LittleEndian
impl Default for LocalSet
impl Default for MatchKind
impl Default for MatchKind
The default match kind is MatchKind::Standard
.
impl Default for Md5
impl Default for Minute
Creates a modifier that indicates the value is padded with zeroes.
impl Default for MissedTickBehavior
impl Default for Month
Creates an instance of this type that indicates the value uses the
Numerical
representation, is padded with zeroes,
and is case-sensitive when parsing.
impl Default for MonthRepr
Creates a modifier that indicates the value uses the
Numerical
representation.
impl Default for Notify
impl Default for OffsetHour
Creates a modifier that indicates the value uses the +
sign for all positive values
and is padded with zeroes.
impl Default for OffsetMinute
Creates a modifier that indicates the value is padded with zeroes.
impl Default for OffsetSecond
Creates a modifier that indicates the value is padded with zeroes.
impl Default for OpenOptions
impl Default for Ordinal
Creates a modifier that indicates the value is padded with zeroes.
impl Default for Padding
Creates a modifier that indicates the value is padded with zeroes.
impl Default for Parker
impl Default for ParserBuilder
impl Default for ParserBuilder
impl Default for ParserConfig
impl Default for Period
Creates a modifier that indicates the value uses the upper-case representation and is case-sensitive when parsing.
impl Default for PixelDensity
impl Default for Pointer
impl Default for PollNext
impl Default for Prefilter
impl Default for Relocation
impl Default for Rng
impl Default for RollingAdler32
impl Default for RunTimeEndian
impl Default for Second
Creates a modifier that indicates the value is padded with zeroes.
impl Default for SectionBaseAddresses
impl Default for SentenceBreak
impl Default for Sha224
impl Default for Sha256
impl Default for Sha384
impl Default for Sha512
impl Default for Sha512Trunc224
impl Default for Sha512Trunc256
impl Default for SipHasher
impl Default for SipHasher
impl Default for SipHasher13
impl Default for SipHasher13
impl Default for SipHasher24
impl Default for SipHasher24
impl Default for SpecialOptions
impl Default for SpinWait
impl Default for StreamingDecoder
impl Default for Style
impl Default for Style
impl Default for Subsecond
Creates a modifier that indicates the stringified value contains one or more digits.
impl Default for SubsecondDigits
Creates a modifier that indicates the stringified value contains one or more digits.
impl Default for Transformations
Instantiate the default transformations, the identity transform.
impl Default for TranslatorBuilder
impl Default for UnicodeVersion
impl Default for UnparkResult
impl Default for VersionIndex
impl Default for WaitGroup
impl Default for WeekNumber
Creates a modifier that indicates that the value is padded with zeroes
and uses the Iso
representation.
impl Default for WeekNumberRepr
Creates a modifier that indicates that the value uses the Iso
representation.
impl Default for Weekday
Creates a modifier that indicates the value uses the Long
representation and is case-sensitive when parsing. If the representation is changed to a
numerical one, the instance defaults to one-based indexing.
impl Default for WeekdayRepr
Creates a modifier that indicates the value uses the Long
representation.
impl Default for WordBreak
impl Default for Year
Creates a modifier that indicates the value uses the Full
representation, is padded with zeroes, uses the Gregorian calendar as its
base, and only includes the year’s sign if necessary.
impl Default for YearRepr
Creates a modifier that indicates the value uses the Full
representation.
impl Default for vec128_storage
impl Default for vec256_storage
impl Default for vec512_storage
impl<'_> Default for &str
impl<'_> Default for &OsStr
impl<'_> Default for &CStr
impl<'_> Default for &mut str
impl<'_> Default for Chain<'_>
impl<'_> Default for CCtx<'_>
impl<'_> Default for DCtx<'_>
impl<'_> Default for Info<'_>
impl<'_, B> Default for Cow<'_, B> where
B: ToOwned + ?Sized,
<B as ToOwned>::Owned: Default,
impl<'_, I, T> Default for &IndexSlice<I, [T]> where
I: Idx,
impl<'_, I, T> Default for &mut IndexSlice<I, [T]> where
I: Idx,
impl<'_, T> Default for &[T]
impl<'_, T> Default for &mut [T]
impl<'a> Default for &'a BStr
impl<'a> Default for &'a mut BStr
impl<'a> Default for Env<'a>
impl<'a> Default for PrettyFormatter<'a>
impl<'a> Default for ArgMatches<'a>
impl<'a> Default for OsValues<'a>
Creates an empty iterator.
impl<'a> Default for Values<'a>
Creates an empty iterator.
impl<'a> Default for ArgGroup<'a>
impl<'a> Default for Bytes<'a>
impl<'a> Default for Compressor<'a>
impl<'a> Default for Decompressor<'a>
impl<'a, 'b> Default for otter_nodejs_tests::tempfile::Builder<'a, 'b>
impl<'a, 'b> Default for Arg<'a, 'b> where
'a: 'b,
impl<'data> Default for Bytes<'data>
impl<'data> Default for ObjectMap<'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, E> Default for LoadCommandIterator<'data, E> where
E: Default + Endian,
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 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 SymbolTable<'data, R> where
R: ReadRef<'data>,
impl<'input, Endian> Default for EndianSlice<'input, Endian> where
Endian: Default + Endianity,
impl<'s, T> Default for SliceVec<'s, T>
impl<A> Default for ArrayVec<A> where
A: Array,
impl<A> Default for SmallVec<A> where
A: Array,
impl<A> Default for TinyVec<A> where
A: Array,
impl<A, T, E> Default for OpOutcomeThunkGeneric<A, T, E> where
T: Default,
impl<BlockSize> Default for BlockBuffer<BlockSize> where
BlockSize: Default + ArrayLength<u8>,
impl<BlockSize, Kind> Default for otter_nodejs_tests::otter_support::crates::digest::block_buffer::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>>,
Kind: BufferKind,
<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<D> Default for http_body::empty::Empty<D>
impl<D> Default for Full<D> where
D: Buf,
impl<D, E> Default for BoxBody<D, E> where
D: 'static + Buf,
impl<D, E> Default for UnsyncBoxBody<D, E> where
D: 'static + Buf,
impl<E> Default for Compat<E> where
E: Default,
impl<E> Default for CompressionHeader32<E> where
E: Default + Endian,
impl<E> Default for CompressionHeader64<E> where
E: Default + Endian,
impl<E> Default for I16Bytes<E> where
E: Default + Endian,
impl<E> Default for I32Bytes<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 Sym64<E> where
E: Default + Endian,
impl<E> Default for U16Bytes<E> where
E: Default + Endian,
impl<E> Default for U32Bytes<E> where
E: Default + Endian,
impl<E> Default for U64Bytes<E> where
E: Default + Endian,
impl<EntryData> Default for VecList<EntryData>
impl<F> Default for OptionFuture<F>
impl<FORMAT, STRICTNESS> Default for DurationMicroSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationMicroSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationMilliSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationMilliSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationNanoSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationNanoSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for DurationSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampMicroSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampMicroSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampMilliSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampMilliSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampNanoSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampNanoSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampSeconds<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<FORMAT, STRICTNESS> Default for TimestampSecondsWithFrac<FORMAT, STRICTNESS> where
FORMAT: Default + Format,
STRICTNESS: Default + Strictness,
impl<Fut> Default for FuturesOrdered<Fut> where
Fut: Future,
impl<Fut> Default for FuturesUnordered<Fut>
impl<H> Default for BuildHasherDefault<H>
impl<I, A> Default for Box<IndexSlice<I, [A]>, Global> where
I: Idx,
impl<I, T> Default for IndexVec<I, T> where
I: Idx,
impl<Id> Default for TokenRegistry<Id> where
Id: Default + AccessId,
impl<Idx> Default for Range<Idx> where
Idx: Default,
impl<K, V> Default for HopSlotMap<K, V> where
K: Key,
impl<K, V> Default for SecondaryMap<K, V> where
K: Key,
impl<K, V> Default for SlotMap<K, V> where
K: Key,
impl<K, V> Default for BTreeMap<K, V, Global>
impl<K, V> Default for DenseSlotMap<K, V> where
K: Key,
impl<K, V> Default for EnumMap<K, V> where
K: EnumArray<V>,
V: Default,
impl<K, V, S> Default for otter_nodejs_tests::HashMap<K, V, S> where
S: Default,
impl<K, V, S> Default for IndexMap<K, V, S> where
S: Default,
impl<K, V, S> Default for SparseSecondaryMap<K, V, S> where
K: Key,
S: BuildHasher + Default,
impl<K, V, S, A> Default for HashMap<K, V, S, A> where
S: Default,
A: Default + Allocator + Clone,
impl<P> Default for Acl<P> where
P: Eq + Hash,
impl<P> Default for LoadedAcl<P> where
P: Perm,
impl<P, Container> Default for ImageBuffer<P, Container> where
P: Pixel,
Container: Default,
impl<R> Default for CfaRule<R> where
R: Reader,
impl<R> Default for DebugAbbrev<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 DebugCuIndex<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 DebugLineStr<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 DebugRanges<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 DebugStrOffsets<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 Dwarf<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 RangeLists<R> where
R: Default,
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, T> Default for otter_nodejs_tests::otter_support::crates::parking_lot::lock_api::Mutex<R, T> where
R: RawMutex,
T: Default + ?Sized,
impl<R, T> Default for otter_nodejs_tests::otter_support::crates::parking_lot::lock_api::RwLock<R, T> where
R: RawRwLock,
T: Default + ?Sized,
impl<S> Default for UniCase<S> where
S: AsRef<str> + Default,
impl<S> Default for BoolFromInt<S> where
S: Default + Strictness,
impl<S> Default for Ascii<S> where
S: Default,
impl<Sep, T> Default for StringWithSeparator<Sep, T> where
Sep: Default,
T: Default,
impl<St> Default for SelectAll<St> where
St: Stream + Unpin,
impl<T> Default for Option<T>
impl<T> Default for [T; 0]
impl<T> Default for [T; 1] where
T: Default,
impl<T> Default for [T; 2] where
T: Default,
impl<T> Default for [T; 3] where
T: Default,
impl<T> Default for [T; 4] where
T: Default,
impl<T> Default for [T; 5] where
T: Default,
impl<T> Default for [T; 6] where
T: Default,
impl<T> Default for [T; 7] where
T: Default,
impl<T> Default for [T; 8] where
T: Default,
impl<T> Default for [T; 9] where
T: Default,
impl<T> Default for [T; 10] where
T: Default,
impl<T> Default for [T; 11] where
T: Default,
impl<T> Default for [T; 12] where
T: Default,
impl<T> Default for [T; 13] where
T: Default,
impl<T> Default for [T; 14] where
T: Default,
impl<T> Default for [T; 15] where
T: Default,
impl<T> Default for [T; 16] where
T: Default,
impl<T> Default for [T; 17] where
T: Default,
impl<T> Default for [T; 18] where
T: Default,
impl<T> Default for [T; 19] where
T: Default,
impl<T> Default for [T; 20] where
T: Default,
impl<T> Default for [T; 21] where
T: Default,
impl<T> Default for [T; 22] where
T: Default,
impl<T> Default for [T; 23] where
T: Default,
impl<T> Default for [T; 24] where
T: Default,
impl<T> Default for [T; 25] where
T: Default,
impl<T> Default for [T; 26] where
T: Default,
impl<T> Default for [T; 27] where
T: Default,
impl<T> Default for [T; 28] where
T: Default,
impl<T> Default for [T; 29] where
T: Default,
impl<T> Default for [T; 30] where
T: Default,
impl<T> Default for [T; 31] where
T: Default,
impl<T> Default for [T; 32] where
T: Default,
impl<T> Default for (T₁, T₂, …, Tₙ) where
T: Default,
This trait is implemented for tuples up to twelve items long.