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 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.
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.55.0 · sourcefn default() -> Self
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§
impl Default for &str
impl Default for &CStr
impl Default for &OsStr
impl Default for &mut str
impl Default for PreferredCompression
impl Default for AsciiChar
impl Default for bool
impl Default for char
impl Default for f16
impl Default for f32
impl Default for f64
impl Default for f128
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 AllowList
The default cache_for
is 1 hour.
impl Default for Rule
Gives content-security-policy: default-src 'self'; style-src 'self' 'unsafe-inline'
.
impl Default for ValueSet
impl Default for Plugins
handover
only.impl Default for kvarn::extensions::Extensions
impl Default for Options
impl Default for LimitManager
Default is Self::new(10, 10, 10)
.
impl Default for RunConfig
impl Default for Settings
impl Default for kvarn::prelude::fs::OpenOptions
impl Default for kvarn::prelude::Arc<str>
no_global_oom_handling
only.impl Default for kvarn::prelude::Arc<CStr>
no_global_oom_handling
only.impl Default for Bytes
impl Default for BytesMut
impl Default for CompactString
impl Default for kvarn::prelude::Duration
impl Default for Method
impl Default for PathBuf
impl Default for StatusCode
impl Default for Uri
Returns a Uri
representing /
impl Default for kvarn::prelude::Version
impl Default for WriteableBytes
impl Default for Error
impl Default for kvarn::prelude::utils::prelude::io::Empty
impl Default for Sink
impl Default for kvarn::prelude::utils::prelude::uri::Builder
impl Default for Parts
impl Default for SipHasher
impl Default for PhantomPinned
impl Default for Alignment
Returns Alignment::MIN
, which is valid for any type.
impl Default for RangeFull
impl Default for AtomicBool
target_has_atomic_load_store="8"
only.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 Global
impl Default for Box<str>
no_global_oom_handling
only.impl Default for Box<CStr>
impl Default for Box<OsStr>
impl Default for CString
impl Default for Rc<str>
no_global_oom_handling
only.impl Default for Rc<CStr>
no_global_oom_handling
only.impl Default for String
impl Default for System
impl Default for OsString
impl Default for FileTimes
impl Default for DefaultHasher
impl Default for RandomState
impl Default for ExitCode
The default value is ExitCode::SUCCESS
impl Default for ExitStatus
The default value is one which indicates successful completion.
impl Default for DefaultRandomSource
impl Default for std::sync::condvar::Condvar
impl Default for Adler32
impl Default for FixedBitSet
impl Default for Crc
impl Default for GzBuilder
impl Default for GzHeader
impl Default for Compression
impl Default for itoa::Buffer
impl Default for Time
impl Default for ryu::buffer::Buffer
impl Default for B0
impl Default for B1
impl Default for Z0
impl Default for Equal
impl Default for Greater
impl Default for Less
impl Default for UTerm
impl Default for Braced
impl Default for Hyphenated
impl Default for Simple
impl Default for Urn
impl Default for Uuid
impl Default for NoContext
impl Default for ThreadRng
impl Default for OsRng
impl Default for Csp
impl Default for Vary
impl Default for ACCESS_DESCRIPTION_st
impl Default for ASN1_ADB_TABLE_st
impl Default for ASN1_ADB_st
impl Default for ASN1_AUX_st
impl Default for ASN1_EXTERN_FUNCS_st
impl Default for ASN1_ITEM_st
impl Default for ASN1_TEMPLATE_st
impl Default for AUTHORITY_KEYID_st
impl Default for Acceptor
impl Default for AckFrequencyConfig
impl Default for AnyDelimiterCodec
impl Default for Array264i
impl Default for Array528i
impl Default for Array712i
impl Default for AtomicWaker
impl Default for AtomicWaker
impl Default for BASIC_CONSTRAINTS_st
impl Default for Backoff
impl Default for BbrConfig
impl Default for BigEndian
impl Default for BlockSwitch
impl Default for BroCatli
impl Default for BrotliEncoderParams
impl Default for Builder
impl Default for Builder
impl Default for Builder
impl Default for Builder
impl Default for Builder
impl Default for BytesCodec
impl Default for CCtx<'_>
impl Default for CRYPTO_dynlock
impl Default for CRYPTO_dynlock_value
impl Default for CancellationToken
impl Default for Collector
impl Default for Command
impl Default for CompressionCache
impl Default for CompressorOxide
impl Default for Condvar
impl Default for Config
impl Default for ConnectionStats
impl Default for ContextType
impl Default for Counter32Builder
impl Default for Counter64Builder
impl Default for CubicConfig
impl Default for DCtx<'_>
impl Default for DES_cblock_st
impl Default for DES_ks
impl Default for DIST_POINT_NAME_st
impl Default for DIST_POINT_NAME_st__bindgen_ty_1
impl Default for DIST_POINT_st
impl Default for DSA_SIG_st
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 DirBuilder
impl Default for Dispatch
impl Default for Duration
impl Default for EC_builtin_curve
impl Default for EDIPartyName_st
impl Default for Eager
impl Default for EmptyIVec
impl Default for End
Creates a modifier used to represent the end of input.
impl Default for EndpointConfig
ring
only.impl Default for Event
impl Default for EventAttributes
impl Default for EventKind
impl Default for EvictionPolicy
impl Default for Extensions
impl Default for FinderBuilder
impl Default for FnvHasher
impl Default for FormatterOptions
impl Default for FrameHeader
impl Default for FrameStats
impl Default for FutexWaitV
impl Default for FxBuildHasher
impl Default for FxHasher
impl Default for GENERAL_NAME_st
impl Default for GENERAL_NAME_st__bindgen_ty_1
impl Default for GENERAL_SUBTREE_st
impl Default for GeneralPurposeConfig
impl Default for H9Opts
impl Default for HRSS_private_key
impl Default for HRSS_public_key
impl Default for HashedConnectionIdGenerator
impl Default for Hasher
impl Default for HistogramCommand
impl Default for HistogramDistance
impl Default for HistogramLiteral
impl Default for HistogramPair
impl Default for Hour
Creates a modifier that indicates the value is padded with zeroes and has the 24-hour representation.
impl Default for HuffmanCode
impl Default for HuffmanTree
impl Default for ISSUING_DIST_POINT_st
impl Default for IdleTimeout
impl Default for InflateState
impl Default for InvalidBufferSize
impl Default for InvalidOutputSize
impl Default for Iv
impl Default for Lazy
impl Default for LengthDelimitedCodec
impl Default for LinesCodec
impl Default for LiteralBlockSwitch
impl Default for LiteralPredictionModeNibble
impl Default for LittleEndian
impl Default for LocalPool
impl Default for LocalSet
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 MtuDiscoveryConfig
impl Default for MultiThreadedSpawner
impl Default for NAME_CONSTRAINTS_st
impl Default for NOTICEREF_st
impl Default for Netscape_spkac_st
impl Default for Netscape_spki_st
impl Default for NewRenoConfig
impl Default for NoSubscriber
impl Default for Notify
impl Default for Null
impl Default for OffsetHour
Creates a modifier that indicates the value only uses a sign for negative 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 Once
impl Default for OnceBool
impl Default for OnceNonZeroUsize
impl Default for OpenHow
impl Default for OpenOptions
impl Default for OpenOptions
impl Default for Ordinal
Creates a modifier that indicates the value is padded with zeroes.
impl Default for PDF
impl Default for POLICYINFO_st
impl Default for POLICYQUALINFO_st
impl Default for POLICYQUALINFO_st__bindgen_ty_1
impl Default for POLICY_CONSTRAINTS_st
impl Default for POLICY_MAPPING_st
impl Default for Padding
Creates a modifier that indicates the value is padded with zeroes.
impl Default for Parker
impl Default for Parsed
impl Default for PathStats
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 PollNext
impl Default for PrefilterConfig
impl Default for Probe
impl Default for RIPEMD160state_st
impl Default for RandomConnectionIdGenerator
impl Default for RecoderState
impl Default for RecvMeta
impl Default for Resumption
impl Default for Rng
impl Default for Second
Creates a modifier that indicates the value is padded with zeroes.
impl Default for ServerConnectionData
impl Default for Sha1Core
impl Default for SingleThreadedSpawner
impl Default for SliceOffset
impl Default for SpinWait
impl Default for StandardAlloc
impl Default for StartPosQueue
impl Default for StatxBuilder
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 SystemRandom
impl Default for Timespec
impl Default for TransportConfig
impl Default for USERNOTICE_st
impl Default for UdpStats
impl Default for UnixTimestamp
Creates a modifier that indicates the value represents the number of seconds since the Unix epoch. The sign is not mandatory.
impl Default for UnixTimestampPrecision
Creates a modifier that indicates the value represents the number of seconds since the Unix epoch.
impl Default for UnparkResult
impl Default for Utf8Bytes
impl Default for VarInt
impl Default for Version
impl Default for WaitGroup
impl Default for WebSocketConfig
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 Written
impl Default for X509_algor_st
impl Default for X509_info_st
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 ZopfliNode
impl Default for _IO_FILE
impl Default for __va_list_tag
impl Default for aes_key_st
impl Default for asn1_string_st
impl Default for asn1_type_st
impl Default for asn1_type_st__bindgen_ty_1
impl Default for bf_key_st
impl Default for bignum_st
impl Default for bio_method_st
impl Default for bio_st
impl Default for blake2b_state_st
impl Default for bn_gencb_st
impl Default for bn_gencb_st__bindgen_ty_1
impl Default for bn_mont_ctx_st
impl Default for buf_mem_st
impl Default for cbb_buffer_st
impl Default for cbb_child_st
impl Default for cbb_st
impl Default for cbb_st__bindgen_ty_1
impl Default for cbs_st
impl Default for conf_value_st
impl Default for crypto_ex_data_st
impl Default for crypto_mutex_st
impl Default for ecdsa_sig_st
impl Default for env_md_ctx_st
impl Default for evp_aead_ctx_st
impl Default for evp_aead_ctx_st_state
impl Default for evp_cipher_ctx_st
impl Default for evp_cipher_info_st
impl Default for evp_encode_ctx_st
impl Default for evp_hpke_ctx_st
impl Default for evp_hpke_key_st
impl Default for hmac_ctx_st
impl Default for md4_state_st
impl Default for md5_state_st
impl Default for md_ctx_union
impl Default for obj_name_st
impl Default for otherName_st
impl Default for pkcs7_signed_st
impl Default for pkcs7_st
impl Default for pkcs7_st__bindgen_ty_1
impl Default for private_key_st
impl Default for rand_meth_st
impl Default for rc4_key_st
impl Default for rsa_pss_params_st
impl Default for sha256_state_st
impl Default for sha512_state_st
impl Default for sha_state_st
impl Default for tm
impl Default for trust_token_st
impl Default for v3_ext_ctx
impl Default for v3_ext_method
impl Default for vec128_storage
impl Default for vec256_storage
impl Default for vec512_storage
impl Default for x509_purpose_st
impl Default for x509_trust_st
impl<'a> Default for MetadataBuilder<'a>
impl<'a> Default for RecordBuilder<'a>
impl<'a> Default for Compressor<'a>
impl<'a> Default for Decompressor<'a>
impl<'a> Default for InputReference<'a>
impl<'a> Default for InputReferenceMut<'a>
impl<'a> Default for Select<'a>
impl<'a, K, V> Default for alloc::collections::btree::map::Iter<'a, K, V>where
K: 'a,
V: 'a,
impl<'a, K, V> Default for alloc::collections::btree::map::IterMut<'a, K, V>where
K: 'a,
V: 'a,
impl<'a, K, V> Default for Iter<'a, K, V>
impl<'a, K, V> Default for IterMut<'a, K, V>
impl<'a, K, V> Default for Keys<'a, K, V>
impl<'a, K, V> Default for Values<'a, K, V>
impl<'a, K, V> Default for ValuesMut<'a, K, V>
impl<'a, T> Default for AllocatedStackMemory<'a, T>where
T: 'a,
impl<'a, T> Default for HeapPrealloc<'a, T>where
T: 'a,
impl<'a, T> Default for Iter<'a, T>
impl<'a, T> Default for IterHash<'a, T>
impl<'a, T> Default for IterHashMut<'a, T>
impl<'a, T> Default for IterMut<'a, T>
impl<'a, T> Default for OnceRef<'a, T>
impl<'prev, 'now> Default for SubmitArgs<'prev, 'now>where
'prev: 'now,
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, B> Default for Chain<A, B>
impl<Alloc> Default for BlockSplit<Alloc>
impl<Alloc> Default for MetaBlockSplit<Alloc>
impl<Alloc> Default for UnionHasher<Alloc>
impl<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode> Default for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>where
AllocU8: Allocator<u8> + Default,
AllocU16: Allocator<u16> + Default,
AllocI32: Allocator<i32> + Default,
AllocU32: Allocator<u32> + Default,
AllocU64: Allocator<u64> + Default,
AllocCommand: Allocator<Command> + Default,
AllocFloatX: Allocator<f32> + Default,
AllocV8: Allocator<CompatF8> + Default,
AllocS16: Allocator<Compat16x16> + Default,
AllocPDF: Allocator<PDF> + Default,
AllocStaticCommand: Allocator<Command<SliceOffset>> + Default,
AllocHistogramLiteral: Allocator<HistogramLiteral> + Default,
AllocHistogramCommand: Allocator<HistogramCommand> + Default,
AllocHistogramDistance: Allocator<HistogramDistance> + Default,
AllocHistogramPair: Allocator<HistogramPair> + Default,
AllocContextType: Allocator<ContextType> + Default,
AllocHuffmanTree: Allocator<HuffmanTree> + Default,
AllocZopfliNode: Allocator<ZopfliNode> + Default,
impl<AllocU32, AllocHC> Default for HuffmanTreeGroup<AllocU32, AllocHC>where
AllocU32: Allocator<u32>,
AllocHC: Allocator<HuffmanCode>,
impl<B> Default for Cow<'_, B>
impl<B> Default for Control<B>
The default is Continue
.
impl<BlockSize, Kind> Default for BlockBuffer<BlockSize, Kind>
impl<E, Ix> Default for List<E, Ix>
impl<F> Default for OptionFuture<F>
impl<Fut> Default for FuturesOrdered<Fut>where
Fut: Future,
impl<Fut> Default for FuturesUnordered<Fut>
impl<H> Default for BuildHasherDefault<H>
impl<I> Default for Cloned<I>where
I: Default,
impl<I> Default for Copied<I>where
I: Default,
impl<I> Default for Enumerate<I>where
I: Default,
impl<I> Default for Flatten<I>
impl<I> Default for Fuse<I>where
I: Default,
impl<I> Default for Rev<I>where
I: Default,
impl<Idx> Default for kvarn::prelude::utils::prelude::compact_str::core::range::legacy::Range<Idx>where
Idx: Default,
impl<Idx> Default for kvarn::prelude::utils::prelude::compact_str::core::range::Range<Idx>where
Idx: Default,
impl<Ix> Default for EdgeIndex<Ix>where
Ix: Default,
impl<Ix> Default for NodeIndex<Ix>where
Ix: Default,
impl<K> Default for std::collections::hash::set::IntoIter<K>
impl<K> Default for std::collections::hash::set::Iter<'_, K>
impl<K> Default for Iter<'_, K>
impl<K, A> Default for IntoIter<K, A>where
A: Allocator,
impl<K, S> Default for DashSet<K, S>
impl<K, V> Default for &Slice<K, V>
impl<K, V> Default for &mut Slice<K, V>
impl<K, V> Default for Box<Slice<K, V>>
impl<K, V> Default for BTreeMap<K, V>
impl<K, V> Default for alloc::collections::btree::map::Keys<'_, K, V>
impl<K, V> Default for alloc::collections::btree::map::Range<'_, K, V>
impl<K, V> Default for RangeMut<'_, K, V>
impl<K, V> Default for alloc::collections::btree::map::Values<'_, K, V>
impl<K, V> Default for alloc::collections::btree::map::ValuesMut<'_, K, V>
impl<K, V> Default for std::collections::hash::map::IntoIter<K, V>
impl<K, V> Default for std::collections::hash::map::IntoKeys<K, V>
impl<K, V> Default for std::collections::hash::map::IntoValues<K, V>
impl<K, V> Default for std::collections::hash::map::Iter<'_, K, V>
impl<K, V> Default for std::collections::hash::map::IterMut<'_, K, V>
impl<K, V> Default for std::collections::hash::map::Keys<'_, K, V>
impl<K, V> Default for std::collections::hash::map::Values<'_, K, V>
impl<K, V> Default for std::collections::hash::map::ValuesMut<'_, K, V>
impl<K, V> Default for CacheBuilder<K, V, Cache<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 IterMut2<'_, K, V>
impl<K, V> Default for IterMut<'_, K, V>
impl<K, V> Default for Keys<'_, K, V>
impl<K, V> Default for Values<'_, K, V>
impl<K, V> Default for ValuesMut<'_, K, V>
impl<K, V, A> Default for alloc::collections::btree::map::IntoIter<K, V, A>
impl<K, V, A> Default for alloc::collections::btree::map::IntoKeys<K, V, A>
impl<K, V, A> Default for alloc::collections::btree::map::IntoValues<K, V, A>
impl<K, V, A> Default for IntoIter<K, V, A>where
A: Allocator,
impl<K, V, A> Default for IntoKeys<K, V, A>where
A: Allocator,
impl<K, V, A> Default for IntoValues<K, V, A>where
A: Allocator,
impl<K, V, S> Default for kvarn::prelude::HashMap<K, V, S>where
S: Default,
impl<K, V, S> Default for DashMap<K, V, S>
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>
impl<K, V, S, A> Default for HashMap<K, V, S, A>
impl<K: Hash + Eq + Send + Sync + 'static, V: Clone + Send + Sync + 'static> Default for MokaCache<K, V>
impl<N> Default for TarjanScc<N>
impl<N, E, Ty, Ix> Default for Csr<N, E, Ty, Ix>
impl<N, E, Ty, Ix> Default for StableGraph<N, E, Ty, Ix>
Create a new empty StableGraph
.
impl<N, E, Ty, Ix> Default for Graph<N, E, Ty, Ix>
Create a new empty Graph
.
impl<N, E, Ty, Null, Ix> Default for MatrixGraph<N, E, Ty, Null, Ix>
Create a new empty MatrixGraph
.
impl<N, E, Ty, S> Default for GraphMap<N, E, Ty, S>
Create a new empty GraphMap
.
impl<N, VM> Default for DfsSpace<N, VM>
impl<N, VM> Default for Bfs<N, VM>where
VM: Default,
impl<N, VM> Default for Dfs<N, VM>where
VM: Default,
impl<N, VM> Default for DfsPostOrder<N, VM>where
VM: Default,
impl<N, VM> Default for Topo<N, VM>where
VM: Default,
impl<O> Default for F32<O>
impl<O> Default for F64<O>
impl<O> Default for I16<O>
impl<O> Default for I32<O>
impl<O> Default for I64<O>
impl<O> Default for I128<O>
impl<O> Default for U16<O>
impl<O> Default for U32<O>
impl<O> Default for U64<O>
impl<O> Default for U128<O>
impl<R, G, T> Default for ReentrantMutex<R, G, T>
impl<R, T> Default for Mutex<R, T>
impl<R, T> Default for RwLock<R, T>
impl<S> Default for Ascii<S>where
S: Default,
impl<S> Default for UniCase<S>
impl<S, C> Default for Builder<S, C>
impl<SliceType> Default for Command<SliceType>where
SliceType: SliceWrapper<u8>,
impl<SliceType> Default for FeatureFlagSliceType<SliceType>
external-literal-probability
only.impl<St> Default for SelectAll<St>
impl<Storage> Default for __BindgenBitfieldUnit<Storage>where
Storage: Default,
impl<T> Default for &[T]
impl<T> Default for &Slice<T>
impl<T> Default for &mut [T]
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.
impl<T> Default for kvarn::prelude::Arc<[T]>
no_global_oom_handling
only.impl<T> Default for kvarn::prelude::Arc<T>where
T: Default,
no_global_oom_handling
only.impl<T> Default for HeaderMap<T>
impl<T> Default for kvarn::prelude::Mutex<T>where
T: Default,
impl<T> Default for Request<T>where
T: Default,
impl<T> Default for Response<T>where
T: Default,
impl<T> Default for kvarn::prelude::RwLock<T>
impl<T> Default for kvarn::prelude::utils::prelude::io::Cursor<T>where
T: Default,
impl<T> Default for Cell<T>where
T: Default,
impl<T> Default for LazyCell<T>where
T: Default,
impl<T> Default for kvarn::prelude::utils::prelude::compact_str::core::cell::OnceCell<T>
impl<T> Default for RefCell<T>where
T: Default,
impl<T> Default for SyncUnsafeCell<T>where
T: Default,
impl<T> Default for UnsafeCell<T>where
T: Default,
impl<T> Default for Reverse<T>where
T: Default,
impl<T> Default for kvarn::prelude::utils::prelude::compact_str::core::iter::Empty<T>
impl<T> Default for PhantomData<T>where
T: ?Sized,
impl<T> Default for ManuallyDrop<T>
impl<T> Default for Saturating<T>where
T: Default,
impl<T> Default for Wrapping<T>where
T: Default,
impl<T> Default for AssertUnwindSafe<T>where
T: Default,
impl<T> Default for kvarn::prelude::utils::prelude::compact_str::core::slice::Iter<'_, T>
impl<T> Default for kvarn::prelude::utils::prelude::compact_str::core::slice::IterMut<'_, T>
impl<T> Default for AtomicPtr<T>
target_has_atomic_load_store="ptr"
only.impl<T> Default for Exclusive<T>
impl<T> Default for Box<[T]>
no_global_oom_handling
only.impl<T> Default for Box<Slice<T>>
impl<T> Default for Box<T>where
T: Default,
no_global_oom_handling
only.impl<T> Default for BinaryHeap<T>where
T: Ord,
impl<T> Default for alloc::collections::binary_heap::IntoIter<T>
impl<T> Default for alloc::collections::binary_heap::Iter<'_, T>
impl<T> Default for BTreeSet<T>
impl<T> Default for alloc::collections::btree::set::Iter<'_, T>
impl<T> Default for alloc::collections::btree::set::Range<'_, T>
impl<T> Default for alloc::collections::linked_list::IntoIter<T>
impl<T> Default for alloc::collections::linked_list::Iter<'_, T>
impl<T> Default for alloc::collections::linked_list::IterMut<'_, T>
impl<T> Default for LinkedList<T>
impl<T> Default for alloc::collections::vec_deque::iter::Iter<'_, T>
impl<T> Default for alloc::collections::vec_deque::iter_mut::IterMut<'_, T>
impl<T> Default for VecDeque<T>
impl<T> Default for Rc<[T]>
no_global_oom_handling
only.impl<T> Default for Rc<T>where
T: Default,
no_global_oom_handling
only.