Skip to main content

Default

Trait Default 

1.0.0 (const: unstable) ยท Source
pub trait Default: Sized {
    // Required method
    fn default() -> Self;
}
Expand description

๐ŸŒฑ core A trait for giving a type a useful default value. (Derivable)


๐Ÿ“code re-exported from core::default



๐Ÿ“œ
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 primitive 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 (const: unstable) ยท 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".

Implementorsยง

1.10.0 (const: unstable) ยท Sourceยง

impl Default for &CStr

1.9.0 ยท Sourceยง

impl Default for &OsStr

1.28.0 (const: unstable) ยท Sourceยง

impl Default for &mut str

1.0.0 (const: unstable) ยท Sourceยง

impl Default for &str

1.0.0 (const: unstable) ยท Sourceยง

impl Default for ()

Sourceยง

impl Default for Abi

Sourceยง

impl Default for Adler32

Sourceยง

impl Default for Alignment

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

Sourceยง

impl Default for AngleDirection

Sourceยง

impl Default for AngleKind

Sourceยง

impl Default for AnsiColor3

Available on crate feature term only.
Sourceยง

impl Default for AppControlSet

1.80.0 ยท Sourceยง

impl Default for alloc::sync::Arc<CStr>

Available on non-no_global_oom_handling only.
1.80.0 ยท Sourceยง

impl Default for alloc::sync::Arc<str>

Available on non-no_global_oom_handling only.
ยง

impl Default for devela::zall::Arc<str>

Available on non-portable_atomic_no_min_const_generics only.
1.0.0 (const: unstable) ยท Sourceยง

impl Default for AsciiChar

Sourceยง

impl Default for AsciiSet

1.0.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<bool>

Available on target_has_atomic_load_store=8 only.
1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<i8>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<i16>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<i32>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<i64>

1.0.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<isize>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<u8>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<u16>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<u32>

1.34.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<u64>

1.0.0 ยท Sourceยง

impl Default for core::sync::atomic::Atomic<usize>

ยง

impl Default for AtomicBool

ยง

impl Default for AtomicF32

ยง

impl Default for AtomicF64

ยง

impl Default for AtomicI8

ยง

impl Default for AtomicI16

ยง

impl Default for AtomicI32

ยง

impl Default for AtomicI64

ยง

impl Default for AtomicI128

ยง

impl Default for AtomicIsize

ยง

impl Default for AtomicU8

ยง

impl Default for AtomicU16

ยง

impl Default for AtomicU32

ยง

impl Default for AtomicU64

ยง

impl Default for AtomicU128

ยง

impl Default for AtomicUsize

Sourceยง

impl Default for AudioChannel

Available on crate feature audio only.
Sourceยง

impl Default for AudioChannels

Available on crate feature audio only.
Sourceยง

impl Default for AudioDeviceDir

Sourceยง

impl Default for AudioStreamDir

Sourceยง

impl Default for BinTag4

Sourceยง

impl Default for BitfieldExample

Available on crate features _docs_examples only.
1.17.0 ยท Sourceยง

impl Default for Box<CStr>

1.17.0 ยท Sourceยง

impl Default for Box<OsStr>

1.17.0 ยท Sourceยง

impl Default for Box<str>

Available on non-no_global_oom_handling only.
Sourceยง

impl Default for Boxed

Available on crate feature alloc only.
ยง

impl Default for BrokenDownTime

Sourceยง

impl Default for ByteString

1.10.0 ยท Sourceยง

impl Default for CString

Sourceยง

impl Default for CharAscii

Sourceยง

impl Default for ColorDepth

Sourceยง

impl Default for std::sync::nonpoison::condvar::Condvar

1.10.0 ยท Sourceยง

impl Default for devela::zall::Condvar

ยง

impl Default for CpuId<CpuIdReaderNative>

Available on x86 and target feature sse and non-SGX, or x86-64 and non-SGX only.
ยง

impl Default for Date

ยง

impl Default for DateTime

ยง

impl Default for DateTimeRound

ยง

impl Default for DefaultCustom

ยง

impl Default for DefaultHashBuilder

1.13.0 (const: unstable) ยท Sourceยง

impl Default for DefaultHasher

Sourceยง

impl Default for DefaultRandomSource

Sourceยง

impl Default for DeviceId

Available on crate feature event only.
Sourceยง

impl Default for DiagLevel

ยง

impl Default for Disambiguation

1.3.0 ยท Sourceยง

impl Default for Duration

Sourceยง

impl Default for ElementNotFound

1.0.0 ยท Sourceยง

impl Default for devela::zall::IoEmpty

Sourceยง

impl Default for EnumSetExample

Available on doc or test only.
1.0.0 ยท Sourceยง

impl Default for Error

Sourceยง

impl Default for Event

Available on crate feature event only.
Sourceยง

impl Default for EventButton

Available on crate feature event only.
Sourceยง

impl Default for EventButtonState

Available on crate feature event only.
Sourceยง

impl Default for EventButtons

Available on crate feature event only.
Sourceยง

impl Default for EventKey

Available on crate feature event only.
Sourceยง

impl Default for EventKeyFfi

Available on ffiยทยท only.
Sourceยง

impl Default for EventKind

Available on crate feature event only.
Sourceยง

impl Default for EventTag

Available on crate feature event only.
Sourceยง

impl Default for EventTagSet

Available on crate feature event only.
Sourceยง

impl Default for EventTarget

Available on crate feature event only.
Sourceยง

impl Default for EventTimestamp

Available on crate feature event only.
Sourceยง

impl Default for EventTimestampMode

Available on crate feature event only.
Sourceยง

impl Default for EventWheelUnit

Available on crate feature event only.
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 ExitStatusError

Sourceยง

impl Default for FailedErrorConversion

1.75.0 ยท Sourceยง

impl Default for FileTimes

ยง

impl Default for FinderBuilder

ยง

impl Default for FixedState

ยง

impl Default for FixedState

Sourceยง

impl Default for FmtNumConf

Sourceยง

impl Default for FmtNumGroup

Sourceยง

impl Default for FmtNumShape

Sourceยง

impl Default for FmtNumSign

Sourceยง

impl Default for FormattingOptions

Sourceยง

impl Default for Global

Sourceยง

impl Default for GraphemeMachine

Available on crate feature grapheme only.
Sourceยง

impl Default for GraphemeString

Available on crate feature grapheme only.
Sourceยง

impl Default for HasherFnv<u32>

Sourceยง

impl Default for HasherFnv<u64>

Sourceยง

impl Default for HasherFnv<u128>

Sourceยง

impl Default for HasherFnv<usize>

Sourceยง

impl Default for HasherFx<u32>

Sourceยง

impl Default for HasherFx<u64>

Sourceยง

impl Default for HasherFx<usize>

Sourceยง

impl Default for HasherPengy

ยง

impl Default for ISOWeekDate

Sourceยง

impl Default for IdPinBox

Available on crate feature alloc only.
Sourceยง

impl Default for IncompatibleBounds

Sourceยง

impl Default for IndexOutOfBounds

Sourceยง

impl Default for InvalidAxisLength

Sourceยง

impl Default for InvalidValue

Sourceยง

impl Default for JsTextRenderMetrics

Available on crate feature js only.
Sourceยง

impl Default for JsTextRenderMetricsFull

Available on crate feature js only.
Sourceยง

impl Default for JsTimeout

Available on crate feature js only.
Sourceยง

impl Default for Key

Available on crate feature event only.
Sourceยง

impl Default for KeyAlreadyExists

Sourceยง

impl Default for KeyFfi

Available on ffiยทยท only.
Sourceยง

impl Default for KeyMods

Available on crate feature event only.
Sourceยง

impl Default for KeyState

Available on crate feature event only.
Sourceยง

impl Default for Lcg16

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for LinuxRandomMode

Available on crate feature linux only.
Sourceยง

impl Default for LinuxSigactionFlags

Available on crate feature linux only.
Sourceยง

impl Default for LinuxSignalSet

Available on crate feature linux only.
Sourceยง

impl Default for LinuxSigset

Available on crate feature linux only.
Sourceยง

impl Default for LinuxStat

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermios

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermiosCc

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermiosCharSize

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermiosControlFlags

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermiosInputFlags

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermiosLocalFlags

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTermiosOutputFlags

Available on crate feature linux only.
Sourceยง

impl Default for LinuxTimespec

Available on crate feature linux only.
Sourceยง

impl Default for Md5

Available on crate features _docs_examples only.
Sourceยง

impl Default for MemHedgeCtrl

Sourceยง

impl Default for MemHedgeError

Sourceยง

impl Default for MemHedgeState

Sourceยง

impl Default for MismatchedDimensions

Sourceยง

impl Default for MismatchedIndices

Sourceยง

impl Default for MismatchedSizes

Sourceยง

impl Default for NoInverse

Sourceยง

impl Default for NodeEmpty

Sourceยง

impl Default for NodeLinkNotSet

Sourceยง

impl Default for NodeLinkNotUnique

Sourceยง

impl Default for NonMaxU8

Sourceยง

impl Default for NonMaxU16

Sourceยง

impl Default for NonMaxU32

Sourceยง

impl Default for NonMaxU64

Sourceยง

impl Default for NonMaxU128

Sourceยง

impl Default for NonMaxUsize

Sourceยง

impl Default for NonMinI8

Sourceยง

impl Default for NonMinI16

Sourceยง

impl Default for NonMinI32

Sourceยง

impl Default for NonMinI64

Sourceยง

impl Default for NonMinI128

Sourceยง

impl Default for NonMinIsize

Sourceยง

impl Default for NonNegativeRequired

Sourceยง

impl Default for NonZeroRequired

Sourceยง

impl Default for NotEnoughElements

Sourceยง

impl Default for NotEnoughSpace

Sourceยง

impl Default for NotImplemented

Sourceยง

impl Default for NotSupported

ยง

impl Default for OffsetConflict

ยง

impl Default for OffsetRound

1.9.0 ยท Sourceยง

impl Default for OsString

Sourceยง

impl Default for Overflow

Sourceยง

impl Default for PartiallyAdded

1.17.0 ยท Sourceยง

impl Default for PathBuf

Sourceยง

impl Default for Pcg32

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for PcmLayout

Available on crate feature audio only.
Sourceยง

impl Default for PcmSample

Available on crate feature audio only.
Sourceยง

impl Default for PcmSpec

Available on crate feature audio only.
1.33.0 ยท Sourceยง

impl Default for PhantomPinned

Sourceยง

impl Default for PositiveRequired

ยง

impl Default for PosixCustom

ยง

impl Default for PrefilterConfig

Sourceยง

impl Default for RandQualities

1.7.0 ยท Sourceยง

impl Default for devela::zall::RandomState

ยง

impl Default for RandomState

ยง

impl Default for RandomState

1.0.0 (const: unstable) ยท Sourceยง

impl Default for RangeFull

Sourceยง

impl Default for RasterFormat

1.80.0 ยท Sourceยง

impl Default for Rc<CStr>

Available on non-no_global_oom_handling only.
1.80.0 ยท Sourceยง

impl Default for Rc<str>

Available on non-no_global_oom_handling only.
Sourceยง

impl Default for ReprMode

Sourceยง

impl Default for RunCap

Sourceยง

impl Default for RunCapAudio

Sourceยง

impl Default for RunCapColor

Sourceยง

impl Default for RunCapImage

Sourceยง

impl Default for RunCapInput

Sourceยง

impl Default for RunCapSystem

Sourceยง

impl Default for RunCapText

Sourceยง

impl Default for RunCapWindow

Sourceยง

impl Default for RunCycle

Sourceยง

impl Default for RunPhase

Sourceยง

impl Default for RunSystemInfo

ยง

impl Default for SeedableRandomState

ยง

impl Default for SeedableRandomState

Sourceยง

impl Default for Sha1

Available on crate features _docs_examples only.
Sourceยง

impl Default for Sha256

Available on crate features _docs_examples only.
Sourceยง

impl Default for Sha512

Available on crate features _docs_examples only.
Sourceยง

impl Default for ShellQuote

Available on crate feature shell only.
Sourceยง

impl Default for Sign

ยง

impl Default for SignedDuration

ยง

impl Default for SignedDurationRound

1.0.0 ยท Sourceยง

impl Default for Sink

1.0.0 ยท Sourceยง

impl Default for SipHasher

Sourceยง

impl Default for SixelChar

Available on crate feature term only.
Sourceยง

impl Default for SixelColor

Available on crate feature term only.
ยง

impl Default for Span

ยง

impl Default for SpanFieldwise

ยง

impl Default for SpanParser

ยง

impl Default for SpanPrinter

ยง

impl Default for SpanRound<'static>

Sourceยง

impl Default for SplitMix64

Creates SplitMix64::INIT as the default value.

Sourceยง

impl Default for StdRand

Available on crate feature std only.
1.0.0 (const: unstable) ยท Sourceยง

impl Default for String

1.28.0 ยท Sourceยง

impl Default for System

Sourceยง

impl Default for TermCaps

Available on crate feature term only.
Sourceยง

impl Default for TermColor

Available on crate feature term only.
Sourceยง

impl Default for TermColorKind

Available on crate feature term only.
Sourceยง

impl Default for TermColorMode

Available on crate feature term only.
Sourceยง

impl Default for TermColors

Available on crate feature term only.
Sourceยง

impl Default for TermInputParser

Available on crate features event and term only.
Sourceยง

impl Default for TermLineMode

Available on crate feature term only.
Sourceยง

impl Default for TermMode

Available on crate feature term only.
Sourceยง

impl Default for TermPollPolicy

Available on crate feature term only.
Sourceยง

impl Default for TermSize

Available on crate feature term only.
Sourceยง

impl Default for TermStyle

Available on crate feature term only.
Sourceยง

impl Default for TermStyleExt

Available on crate feature term only.
Sourceยง

impl Default for TermelMeta

Available on crate feature term only.
Sourceยง

impl Default for TermelOccupancy

Available on crate feature term only.
Sourceยง

impl Default for TextCursor

Sourceยง

impl Default for TextFit

Sourceยง

impl Default for TextIndex

Sourceยง

impl Default for TextLayout

ยง

impl Default for Time

Sourceยง

impl Default for TimeDelta

Sourceยง

impl Default for TimeFake

Available on target_has_atomic=64 only.
ยง

impl Default for TimeRound

Sourceยง

impl Default for TimeScale

Sourceยง

impl Default for TimeUnixI64

Sourceยง

impl Default for TimeUnixU32

Sourceยง

impl Default for Timeout

ยง

impl Default for Timestamp

ยง

impl Default for TimestampRound

Sourceยง

impl Default for UnexpectedEof

Sourceยง

impl Default for UnitBi

Available on crate feature unit only.
Sourceยง

impl Default for UnitSi

Available on crate feature unit only.
Sourceยง

impl Default for ValueKind

Sourceยง

impl Default for ValueKind4

Sourceยง

impl Default for Version

Sourceยง

impl Default for WebElement

Available on crate feature web only.
Sourceยง

impl Default for WebEventKind

Available on crate features event and web only.
Sourceยง

impl Default for WebKeyLocation

Available on crate features event and web only.
Sourceยง

impl Default for WebWindowState

Available on crate feature web only.
Sourceยง

impl Default for WebWorker

Available on crate feature web only.
Sourceยง

impl Default for WindowId

Available on crate feature event only.
Sourceยง

impl Default for XRasterRenderer

Sourceยง

impl Default for Xabc

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for XorShift16

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for XorShift32

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for XorShift64

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for XorShift128

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for XorShift128p

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for Xoroshiro128pp

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for Xyza8a

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl Default for Xyza8b

Available on crate feature rand only.
ยง

impl Default for Zoned

ยง

impl Default for ZonedRound

1.0.0 (const: unstable) ยท Sourceยง

impl Default for bool

1.0.0 (const: unstable) ยท Sourceยง

impl Default for char

Sourceยง

impl Default for char7

Sourceยง

impl Default for char8

Sourceยง

impl Default for char16

Sourceยง

impl Default for charu

Sourceยง

impl Default for charu_niche

1.0.0 (const: unstable) ยท Sourceยง

impl Default for f16

1.0.0 (const: unstable) ยท Sourceยง

impl Default for f32

1.0.0 (const: unstable) ยท Sourceยง

impl Default for f64

Sourceยง

impl Default for f32bits

Sourceยง

impl Default for f32bits_niche

ยง

impl Default for f32x4

ยง

impl Default for f32x8

ยง

impl Default for f32x16

Sourceยง

impl Default for f64bits

Sourceยง

impl Default for f64bits_niche

ยง

impl Default for f64x2

ยง

impl Default for f64x4

ยง

impl Default for f64x8

1.0.0 (const: unstable) ยท Sourceยง

impl Default for f128

Sourceยง

impl Default for g_bvec2

Available on crate feature glsl only.
Sourceยง

impl Default for g_bvec3

Available on crate feature glsl only.
Sourceยง

impl Default for g_bvec4

Available on crate feature glsl only.
Sourceยง

impl Default for g_dmat2

Available on crate feature glsl only.
Sourceยง

impl Default for g_dmat3

Available on crate feature glsl only.
Sourceยง

impl Default for g_dmat4

Available on crate feature glsl only.
Sourceยง

impl Default for g_dvec2

Available on crate feature glsl only.
Sourceยง

impl Default for g_dvec3

Available on crate feature glsl only.
Sourceยง

impl Default for g_dvec4

Available on crate feature glsl only.
Sourceยง

impl Default for g_ivec2

Available on crate feature glsl only.
Sourceยง

impl Default for g_ivec3

Available on crate feature glsl only.
Sourceยง

impl Default for g_ivec4

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat2

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat3

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat4

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat2x3

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat2x4

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat3x2

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat3x4

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat4x2

Available on crate feature glsl only.
Sourceยง

impl Default for g_mat4x3

Available on crate feature glsl only.
Sourceยง

impl Default for g_uvec2

Available on crate feature glsl only.
Sourceยง

impl Default for g_uvec3

Available on crate feature glsl only.
Sourceยง

impl Default for g_uvec4

Available on crate feature glsl only.
Sourceยง

impl Default for g_vec2

Available on crate feature glsl only.
Sourceยง

impl Default for g_vec3

Available on crate feature glsl only.
Sourceยง

impl Default for g_vec4

Available on crate feature glsl only.
Sourceยง

impl Default for g_vertex2

Available on crate feature glsl only.
Sourceยง

impl Default for g_vertex3

Available on crate feature glsl only.
1.0.0 (const: unstable) ยท Sourceยง

impl Default for i8

ยง

impl Default for i8x16

ยง

impl Default for i8x32

1.0.0 (const: unstable) ยท Sourceยง

impl Default for i16

1.0.0 (const: unstable) ยท Sourceยง

impl Default for i32

1.0.0 (const: unstable) ยท Sourceยง

impl Default for i64

ยง

impl Default for i16x8

ยง

impl Default for i16x16

ยง

impl Default for i16x32

ยง

impl Default for i32x4

ยง

impl Default for i32x8

ยง

impl Default for i32x16

ยง

impl Default for i64x2

ยง

impl Default for i64x4

ยง

impl Default for i64x8

1.0.0 (const: unstable) ยท Sourceยง

impl Default for i128

1.0.0 (const: unstable) ยท Sourceยง

impl Default for isize

ยง

impl Default for m128

ยง

impl Default for m256

ยง

impl Default for m512

ยง

impl Default for m128d

ยง

impl Default for m128i

ยง

impl Default for m256d

ยง

impl Default for m256i

ยง

impl Default for m512d

ยง

impl Default for m512i

1.0.0 (const: unstable) ยท Sourceยง

impl Default for u8

ยง

impl Default for u8x16

ยง

impl Default for u8x32

1.0.0 (const: unstable) ยท Sourceยง

impl Default for u16

1.0.0 (const: unstable) ยท Sourceยง

impl Default for u32

1.0.0 (const: unstable) ยท Sourceยง

impl Default for u64

ยง

impl Default for u16x8

ยง

impl Default for u16x16

ยง

impl Default for u16x32

ยง

impl Default for u32x4

ยง

impl Default for u32x8

ยง

impl Default for u32x16

ยง

impl Default for u64x2

ยง

impl Default for u64x4

ยง

impl Default for u64x8

1.0.0 (const: unstable) ยท Sourceยง

impl Default for u128

1.0.0 (const: unstable) ยท Sourceยง

impl Default for usize

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 + 'a> Default for ConstList<'a, T>

Sourceยง

impl<'a> Default for &'a ByteStr

Sourceยง

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

Sourceยง

impl<'a> Default for AnsiLink<'a>

Available on crate feature term only.
Sourceยง

impl<'a> Default for PhantomContravariantLifetime<'a>

Sourceยง

impl<'a> Default for PhantomCovariantLifetime<'a>

Sourceยง

impl<'a> Default for PhantomInvariantLifetime<'a>

Sourceยง

impl<'a> Default for TextScanner<'a>

Sourceยง

impl<'a> Default for VersionFull<'a>

1.70.0 ยท Sourceยง

impl<A, B> Default for Chain<A, B>
where A: Default, B: Default,

1.97.0 ยท Sourceยง

impl<A> Default for RepeatN<A>

Creates an empty iterator, like repeat_n(value, 0) but without needing any such value at hand.

Sourceยง

impl<A> Default for VecChunk<A>

Available on crate feature alloc only.
1.11.0 ยท Sourceยง

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

Sourceยง

impl<DST: ?Sized, BUF: DstBuf + Default> Default for DstQueue<DST, BUF>

Available on crate feature unsafe_layout only.
Sourceยง

impl<DST: ?Sized, BUF: DstBuf + Default> Default for DstStack<DST, BUF>

Available on crate feature unsafe_layout only.
1.7.0 (const: unstable) ยท 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 (const: unstable) ยท Sourceยง

impl<Idx> Default for core::ops::range::Range<Idx>
where Idx: Default,

1.96.0 (const: unstable) ยท Sourceยง

impl<Idx> Default for devela::zall::Range<Idx>
where Idx: Default,

ยง

impl<K, A> Default for IntoIter<K, A>
where A: Allocator,

1.70.0 ยท Sourceยง

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

ยง

impl<K, V, A> Default for IntoIter<K, V, A>
where A: Allocator,

1.70.0 ยท Sourceยง

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

ยง

impl<K, V, A> Default for IntoKeys<K, V, A>
where A: Allocator,

1.70.0 ยท Sourceยง

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

ยง

impl<K, V, A> Default for IntoValues<K, V, A>
where A: Allocator,

ยง

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

1.0.0 (const: unstable) ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<K, V> Default for BTreeMap<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>

ยง

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

1.83.0 ยท Sourceยง

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

ยง

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

1.83.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

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

ยง

impl<K, V> Default for 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.83.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

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

ยง

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

1.83.0 ยท Sourceยง

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

1.82.0 ยท Sourceยง

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

ยง

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

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>

ยง

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

Sourceยง

impl<N: Default, H: Default> Default for Mismatch<N, H>

Sourceยง

impl<P: Default, E: Default, const D: usize> Default for Region<P, E, D>

Sourceยง

impl<P: Default, E: Default, const D: usize> Default for RegionStrided<P, E, D>

Sourceยง

impl<P> Default for MaybeDangling<P>
where P: Default + ?Sized,

ยง

impl<R> Default for UnwrapErr<R>
where R: Default + TryRng,

Sourceยง

impl<S: Default, C: Default> Default for TermPen<S, C>

Available on crate feature term only.
Sourceยง

impl<S: Default, V: Default> Default for Own<S, V>

ยง

impl<T, A> Default for HashTable<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,

1.70.0 ยท Sourceยง

impl<T, A> Default for alloc::vec::into_iter::IntoIter<T, A>
where A: Allocator + Default,

ยง

impl<T, A> Default for IntoIter<T, A>
where A: Allocator,

ยง

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

1.0.0 (const: unstable) ยท Sourceยง

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

Sourceยง

impl<T, const CAP: usize> Default for BufferLinearStaticExample<T, [MaybeUninit<T>; CAP]>

Available on crate features _docs_examples only.
Sourceยง

impl<T, const CAP: usize> Default for BufferLinearStaticExample<T, [Option<T>; CAP]>

Available on crate features _docs_examples only.
Sourceยง

impl<T, const CAP: usize> Default for BufferRingStaticExample<T, [Option<T>; CAP]>

Available on crate features _docs_examples only.
1.89.0 ยท Sourceยง

impl<T, const N: usize> Default for core::array::iter::IntoIter<T, N>

Sourceยง

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

Sourceยง

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

Sourceยง

impl<T, const VARIANT: u32, const FIELD: u32> Default for FieldRepresentingType<T, VARIANT, FIELD>
where T: ?Sized,

Sourceยง

impl<T: Clone> Default for EnumExample<'_, '_, T>

Available on doc or test only.
Sourceยง

impl<T: Default + Copy> Default for MaybeNiche<T>

Sourceยง

impl<T: Default + Copy> Default for NonNiche<T>

Sourceยง

impl<T: Default, B: Default> Default for PcmBuf<T, B>

Available on crate feature audio only.
Sourceยง

impl<T: Default, E: Default> Default for CoroManager<T, E>

Sourceยง

impl<T: Default, N: Default> Default for CycleCount<T, N>

Sourceยง

impl<T: Default, S: Default, C: Default, M: Default> Default for Termel<T, S, C, M>

Available on crate feature term only.
Sourceยง

impl<T: Default, const C: usize, const R: usize, const CR: usize, const RMAJ: bool> Default for Array2d<T, C, R, CR, RMAJ, Bare>

Sourceยง

impl<T: Default, const C: usize, const R: usize, const CR: usize, const RMAJ: bool> Default for Array2d<T, C, R, CR, RMAJ, Boxed>

Available on crate feature alloc only.
Sourceยง

impl<T: Default, const CAP: usize, IDX: Default> Default for Destaque<T, CAP, IDX, Bare>

Available on _destaqueยทยท only.
Sourceยง

impl<T: Default, const CAP: usize, IDX: Default> Default for Destaque<T, CAP, IDX, Boxed>

Available on _destaqueยทยท and crate feature alloc only.
Sourceยง

impl<T: Default, const CAP: usize, IDX: Default> Default for Stack<T, CAP, IDX, Bare>

Available on _stackยทยท only.
Sourceยง

impl<T: Default, const CAP: usize, IDX: Default> Default for Stack<T, CAP, IDX, Boxed>

Available on crate feature alloc only.
Sourceยง

impl<T: Default, const CAP: usize, S: Default + Storage> Default for ArrayUninit<T, CAP, S>
where S::Stored<[MaybeUninit<T>; CAP]>: Default,

Available on crate features unsafe_array only.
Sourceยง

impl<T: Default, const CAP: usize> Default for Array<T, CAP, Bare>

Sourceยง

impl<T: Default, const CAP: usize> Default for Array<T, CAP, Boxed>

Available on crate feature alloc only.
Sourceยง

impl<T: Default, const D: usize> Default for Distance<T, D>

Sourceยง

impl<T: Default, const D: usize> Default for Extent<T, D>

Sourceยง

impl<T: Default, const D: usize> Default for Orientation<T, D>

Sourceยง

impl<T: Default, const D: usize> Default for Point<T, D>

Sourceยง

impl<T: Default, const D: usize> Default for Position<T, D>

Sourceยง

impl<T: Default, const D: usize> Default for Stride<T, D>

Sourceยง

impl<T: Default, const D: usize> Default for Vector<T, D>

Available on crate feature lin only.
Sourceยง

impl<T: Default, const LINEAR: bool, const LIGHTNESS: bool> Default for Lum<T, LINEAR, LIGHTNESS>

Available on crate feature color only.
Sourceยง

impl<T: Default, const LINEAR: bool, const PREMUL: bool> Default for Rgba<T, LINEAR, PREMUL>

Available on crate feature color only.
Sourceยง

impl<T: Default, const LINEAR: bool> Default for Rgb<T, LINEAR>

Available on crate feature color only.
Sourceยง

impl<T: Default, const SPIN: usize, const YIELD: usize, const SLEEP: u64> Default for SpinLock<T, SPIN, YIELD, SLEEP>

Available on crate feature unsafe_sync only.
Sourceยง

impl<T: Default> Default for Angle<T>

Sourceยง

impl<T: Default> Default for BareBox<T>

Sourceยง

impl<T: Default> Default for CacheAlign<T>

Sourceยง

impl<T: Default> Default for Cast<T>

Sourceยง

impl<T: Default> Default for Cycle<T>

Sourceยง

impl<T: Default> Default for Textel<T>

Sourceยง

impl<T: MemPod, const CAP: usize> Default for DstArray<T, CAP>

Available on crate feature unsafe_layout only.
1.0.0 (const: unstable) ยท Sourceยง

impl<T> Default for &[T]

1.5.0 (const: unstable) ยท Sourceยง

impl<T> Default for &mut [T]

1.0.0 (const: unstable) ยท Sourceยง

impl<T> Default for (Tโ‚, Tโ‚‚, โ€ฆ, Tโ‚™)
where T: Default,

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

1.88.0 ยท Sourceยง

impl<T> Default for *const T
where T: Thin + ?Sized,

1.88.0 ยท Sourceยง

impl<T> Default for *mut T
where T: Thin + ?Sized,

1.0.0 ยท Sourceยง

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

Available on non-no_global_oom_handling only.
ยง

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

1.80.0 ยท Sourceยง

impl<T> Default for alloc::sync::Arc<[T]>

Available on non-no_global_oom_handling only.
ยง

impl<T> Default for devela::zall::Arc<[T]>

Available on non-portable_atomic_no_min_const_generics only.
1.62.0 ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<T> Default for core::sync::atomic::Atomic<*mut T>

Available on target_has_atomic_load_store=ptr only.
ยง

impl<T> Default for devela::zall::Atomic<T>
where T: Default,

ยง

impl<T> Default for AtomicPtr<T>

1.0.0 ยท Sourceยง

impl<T> Default for BTreeSet<T>

1.0.0 ยท Sourceยง

impl<T> Default for BinaryHeap<T>

1.0.0 ยท Sourceยง

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

Available on non-no_global_oom_handling only.
1.0.0 ยท Sourceยง

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

Available on non-no_global_oom_handling only.
Sourceยง

impl<T> Default for BufferLinearAllocExample<T, Vec<T>>

Available on crate features _docs_examples only.
1.0.0 (const: unstable) ยท Sourceยง

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

1.0.0 ยท Sourceยง

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

1.2.0 (const: unstable) ยท Sourceยง

impl<T> Default for core::iter::sources::empty::Empty<T>

Sourceยง

impl<T> Default for Interval<T>

Provides a default value for Interval, the unbounded interval $(-\infty, \infty)$.

This choice emphasizes neutrality and generality, where the interval encompasses all possible values of T. It:

  • Represents a neutral and maximal range for generic use cases.
  • Avoids reliance on Default for T, making it applicable to all types.
  • Aligns with mathematical conventions, where unbounded intervals are a natural default.
1.70.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

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

1.70.0 ยท Sourceยง

impl<T> Default for core::slice::iter::Iter<'_, T>

1.82.0 ยท Sourceยง

impl<T> Default for alloc::collections::binary_heap::Iter<'_, 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::linked_list::Iter<'_, T>

1.82.0 ยท Sourceยง

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

ยง

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

ยง

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

ยง

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

ยง

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

ยง

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

1.70.0 ยท Sourceยง

impl<T> Default for core::slice::iter::IterMut<'_, T>

1.70.0 ยท Sourceยง

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

1.82.0 ยท Sourceยง

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

ยง

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

1.80.0 (const: unstable) ยท Sourceยง

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

1.80.0 (const: unstable) ยท Sourceยง

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

1.0.0 ยท Sourceยง

impl<T> Default for LinkedList<T>

1.20.0 ยท Sourceยง

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

Sourceยง

impl<T> Default for std::sync::nonpoison::mutex::Mutex<T>
where T: Default,

1.10.0 ยท Sourceยง

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

1.70.0 (const: unstable) ยท Sourceยง

impl<T> Default for OnceCell<T>

1.70.0 (const: unstable) ยท Sourceยง

impl<T> Default for OnceLock<T>

1.0.0 (const: unstable) ยท Sourceยง

impl<T> Default for Option<T>

Sourceยง

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

Sourceยง

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

1.0.0 (const: unstable) ยท Sourceยง

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

Sourceยง

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

1.91.0 ยท Sourceยง

impl<T> Default for Pin<Arc<T>>
where Arc<T>: Default, T: ?Sized,

Available on non-no_global_oom_handling only.
ยง

impl<T> Default for Pin<Arc<T>>
where Arc<T>: Default, T: ?Sized,

1.91.0 ยท Sourceยง

impl<T> Default for Pin<Box<T>>
where Box<T>: Default, T: ?Sized,

Available on non-no_global_oom_handling only.
1.91.0 ยท Sourceยง

impl<T> Default for Pin<Rc<T>>
where Rc<T>: Default, T: ?Sized,

Available on non-no_global_oom_handling only.
1.70.0 ยท Sourceยง

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

1.0.0 ยท Sourceยง

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

Available on non-no_global_oom_handling only.
1.80.0 ยท Sourceยง

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

Available on non-no_global_oom_handling only.
Sourceยง

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

1.0.0 (const: unstable) ยท Sourceยง

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

1.19.0 (const: unstable) ยท Sourceยง

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

Sourceยง

impl<T> Default for std::sync::nonpoison::rwlock::RwLock<T>
where T: Default,

1.10.0 ยท Sourceยง

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

1.74.0 ยท Sourceยง

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

Sourceยง

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

Sourceยง

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

Sourceยง

impl<T> Default for TypeResource<T>

1.10.0 (const: unstable) ยท Sourceยง

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

ยง

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

Sourceยง

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

1.0.0 (const: unstable) ยท Sourceยง

impl<T> Default for Vec<T>

1.0.0 ยท Sourceยง

impl<T> Default for VecDeque<T>

1.10.0 ยท Sourceยง

impl<T> Default for devela::zall::RcWeak<T>

1.10.0 ยท Sourceยง

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

ยง

impl<T> Default for devela::zall::ArcWeak<T>

1.0.0 ยท Sourceยง

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

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<V: Default, Q: Default> Default for ValueQuant<V, Q>

Sourceยง

impl<V: Default, T: Default> Default for Timed<V, T>

Sourceยง

impl<V: Default, const N: usize> Default for MapStaticConstU8Example<u8, V, N>

Sourceยง

impl<V: Default, const N: usize> Default for MapStaticTypeIdExample<u64, V, N>

Sourceยง

impl<V: Default, const N: usize> Default for MapStaticU16Example<u16, V, N>

Sourceยง

impl<Y: Default, MO: Default, D: Default, H: Default, M: Default, S: Default, MS: Default, US: Default, NS: Default> Default for TimeSplit<Y, MO, D, H, M, S, MS, US, NS>

Sourceยง

impl<const A: usize, const B: usize, const C: usize> Default for XorShift8<A, B, C>

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

impl<const CAP: usize, const MSG_LEN: usize> Default for LoggerStatic<CAP, MSG_LEN>

Sourceยง

impl<const CAP: usize> Default for ArenaExample<CAP>

Sourceยง

impl<const CAP: usize> Default for EventQueue<CAP>

Available on crate feature event only.
Sourceยง

impl<const CAP: usize> Default for GraphemeNonul<CAP>

Available on crate feature grapheme only.
Sourceยง

impl<const CAP: usize> Default for GraphemeU8<CAP>

Available on crate feature grapheme only.
Sourceยง

impl<const CAP: usize> Default for SixelPalette<CAP>

Available on crate feature term only.
Sourceยง

impl<const CAP: usize> Default for StringNonul<CAP>

Sourceยง

impl<const CAP: usize> Default for StringSmallAlloc<CAP>

Available on crate feature alloc only.
Sourceยง

impl<const CAP: usize> Default for StringU8<CAP>

Sourceยง

impl<const DENSE: usize, const SPARSE: usize> Default for SparseSetArray<DENSE, SPARSE>

Sourceยง

impl<const LEN: usize, _0: Default, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11> Default for Oneof<LEN, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11>

Sourceยง

impl<const MAX_COLORS: usize> Default for SixelEncoder<MAX_COLORS>

Available on crate feature term only.
Sourceยง

impl<const RADIX: usize, const LUT: bool, const PAD: bool, const CASE: bool, CODE> Default for Base<RADIX, LUT, PAD, CASE, CODE>