Skip to main content

ConstInit

Trait ConstInit 

Source
pub trait ConstInit {
    const INIT: Self;
}
Expand description

๐ŸŒฑ A trait for giving a type a useful const-friendly initial value.


๐Ÿ“ code


ยงComparison with Default

Default represents the typeโ€™s natural baseline, usually a neutral or zero-like state. ConstInit simply provides a valid const-time initializer, without requiring that meaning.

When a type has a clear Default, these traits should return the same value to keep behavior consistent. They only diverge for types that cannot offer a safe or meaningful Default, but still need a guaranteed const initializer.

  • Use Default for semantic baselines.
  • Use ConstInit for invariant-safe const initialization.

Required Associated Constantsยง

Source

const INIT: Self

Returns the compile-time โ€œinitial valueโ€ for a type.

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Typesยง

Sourceยง

impl ConstInit for &mut str

Available on crate feature unsafe_str only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for &str

Sourceยง

const INIT: Self = ""

Sourceยง

impl ConstInit for ()

Sourceยง

const INIT: Self = ()

Sourceยง

impl ConstInit for bool

Sourceยง

const INIT: Self = false

Sourceยง

impl ConstInit for char

Sourceยง

const INIT: Self = '\x00'

Sourceยง

impl ConstInit for f32

Sourceยง

const INIT: Self = 0.0

Sourceยง

impl ConstInit for f64

Sourceยง

const INIT: Self = 0.0

Sourceยง

impl ConstInit for i8

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for i16

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for i32

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for i64

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for i128

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for isize

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for u8

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for u16

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for u32

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for u64

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for u128

Sourceยง

const INIT: Self = 0

Sourceยง

impl ConstInit for usize

Sourceยง

const INIT: Self = 0

Sourceยง

impl<T: ConstInit> ConstInit for (T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T, T, T, T, T, T, T, T, T, T, T, T)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for (T,)

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Range<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RangeFrom<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RangeInclusive<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RangeToInclusive<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Weak<T>

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 0]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 1]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 2]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 3]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 4]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 5]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 6]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 7]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 8]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 9]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 10]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 11]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 12]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 13]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 14]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 15]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 16]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 17]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 18]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 19]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 20]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 21]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 22]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 23]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 24]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 25]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 26]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 27]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 28]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 29]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 30]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 31]

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for [T; 32]

Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for &[T]

Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for *const T

Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for *mut T

Sourceยง

const INIT: Self

Implementorsยง

Sourceยง

impl ConstInit for &CStr

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Adler32

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AppControlSet

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for ArenaHandleExample

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AsciiSet

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicF32

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicF64

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicI8

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicI16

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicI32

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicI64

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicI128

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicIsize

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicU8

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicU16

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicU32

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicU64

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicU128

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AtomicUsize

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AudioChannel

Available on crate feature audio only.
Sourceยง

const INIT: Self = Self::L

Sourceยง

impl ConstInit for AudioChannels

Available on crate feature audio only.
Sourceยง

const INIT: Self = Self::Stereo

Sourceยง

impl ConstInit for AudioDevice<'_>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for AudioDeviceDir

Sourceยง

const INIT: Self = Self::Duplex

Sourceยง

impl ConstInit for AudioStreamDir

Sourceยง

const INIT: Self = Self::Playback

Sourceยง

impl ConstInit for BinTag4

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for BitfieldExample

Available on crate features _docs_examples only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Boundary1d

Sourceยง

const INIT: Self = Self::Left

Sourceยง

impl ConstInit for Boundary2d

Sourceยง

const INIT: Self = Self::Left

Sourceยง

impl ConstInit for Boundary3d

Sourceยง

const INIT: Self = Self::Left

Sourceยง

impl ConstInit for Boxed

Available on crate feature alloc only.
Sourceยง

const INIT: Self = Boxed

Sourceยง

impl ConstInit for CharAscii

Sourceยง

const INIT: Self = Self::Null

Sourceยง

impl ConstInit for Condvar

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for CryptoError

Sourceยง

const INIT: Self = Self::LengthOverflow

Sourceยง

impl ConstInit for DeviceId

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Duration

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EnumSetExample

Available on doc or test only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Event

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::None

Sourceยง

impl ConstInit for EventButton

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Left

Sourceยง

impl ConstInit for EventButtonState

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Pressed

Sourceยง

impl ConstInit for EventButtons

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventKey

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventKind

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::None

Sourceยง

impl ConstInit for EventMouse

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventPointer

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventPointerKind

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Mouse

Sourceยง

impl ConstInit for EventTagSet

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventTarget

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Global

Sourceยง

impl ConstInit for EventTimestamp

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventWheel

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for EventWheelUnit

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Step

Sourceยง

impl ConstInit for EventWindow

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::FocusLost

Sourceยง

impl ConstInit for ExitCode

Available on crate feature std only.
Sourceยง

const INIT: Self = Self::SUCCESS

Sourceยง

impl ConstInit for FloatCategory

Sourceยง

const INIT: Self = FloatCategory::Nan

Sourceยง

impl ConstInit for FmtNumConf

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for FmtNumGroup

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for FmtNumSign

Sourceยง

const INIT: Self = FmtNumSign::NegativeOnly

Sourceยง

impl ConstInit for GraphemeString

Available on crate feature grapheme only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HandleSpanExample

Available on crate features _docs_examples only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFnv<u32>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFnv<u64>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFnv<u128>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFnv<usize>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFx<u32>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFx<u64>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherFx<usize>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HasherPengy

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for HttpError

Available on crate feature http only.
Sourceยง

const INIT: Self = Self::EmptyRequestLine

Sourceยง

impl ConstInit for Key

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Unknown

Sourceยง

impl ConstInit for KeyDead

Available on crate feature event only.
Sourceยง

const INIT: Self = KeyDead::Unknown

Sourceยง

impl ConstInit for KeyFfi

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

const INIT: Self = Self::Unknown

Sourceยง

impl ConstInit for KeyMedia

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Play

Sourceยง

impl ConstInit for KeyMod

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::LeftShift

Sourceยง

impl ConstInit for KeyMods

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for KeyPad

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Num0

Sourceยง

impl ConstInit for KeyState

Available on crate feature event only.
Sourceยง

const INIT: Self = Self::Press

Sourceยง

impl ConstInit for Lcg16

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxSigactionFlags

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxSignalSet

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxTermiosControlFlags

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxTermiosInputFlags

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxTermiosLocalFlags

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxTermiosOutputFlags

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for LinuxTimespec

Available on crate feature linux only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<i8>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<i16>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<i32>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<i64>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<i128>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<isize>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<u8>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<u16>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<u32>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<u64>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<u128>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonNiche<usize>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<i8>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<i16>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<i32>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<i64>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<i128>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<isize>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<u8>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<u16>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<u32>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<u64>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<u128>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<NonZero<usize>>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<i8>
where i8: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<i16>
where i16: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<i32>
where i32: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<i64>
where i64: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<i128>
where i128: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<isize>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<u8>
where u8: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<u16>
where u16: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<u32>
where u32: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<u64>
where u64: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<u128>
where u128: ConstInit,

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for MaybeNiche<usize>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Md5

Available on crate features _docs_examples only.
Sourceยง

impl ConstInit for NonZeroI8

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroI16

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroI32

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroI64

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroI128

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroIsize

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroU8

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroU16

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroU32

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroU64

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroU128

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for NonZeroUsize

This implementation returns the same as Self::MIN.

Sourceยง

const INIT: Self = Self::MIN

Sourceยง

impl ConstInit for Once

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Ordering

Sourceยง

const INIT: Self = Ordering::Equal

Sourceยง

impl ConstInit for ParseIntErrorKind

Sourceยง

const INIT: Self = ParseIntErrorKind::Empty

Sourceยง

impl ConstInit for Pcg32

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for PcmLayout

Available on crate feature audio only.
Sourceยง

const INIT: Self = Self::Interleaved

Sourceยง

impl ConstInit for PcmSample

Available on crate feature audio only.
Sourceยง

const INIT: Self = Self::I16

Sourceยง

impl ConstInit for PcmSpec

Available on crate feature audio only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for PhantomPinned

Sourceยง

const INIT: Self = Self

Sourceยง

impl ConstInit for RandQualities

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for RangeFull

Sourceยง

const INIT: Self = Self

Sourceยง

impl ConstInit for RasterFormat

Sourceยง

const INIT: Self = Self::UNKNOWN

Sourceยง

impl ConstInit for ReprMode

Sourceยง

const INIT: Self = Self::Raw

Sourceยง

impl ConstInit for RunCapInput

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for RunCapSystem

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for RunCapText

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Sha1

Available on crate features _docs_examples only.
Sourceยง

impl ConstInit for Sha256

Available on crate features _docs_examples only.
Sourceยง

impl ConstInit for Sha512

Available on crate features _docs_examples only.
Sourceยง

impl ConstInit for Sign

Sourceยง

const INIT: Self = Sign::Zero

Sourceยง

impl ConstInit for SplitMix64

Provides a fixed default initialized value.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for String

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TermCaps

Available on crate feature term only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TermColor

Available on crate feature term only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TermInputParser

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

const INIT: Self

Sourceยง

impl ConstInit for TermMode

Available on crate feature term only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TermStyle

Available on crate feature term only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TermStyleExt

Available on crate feature term only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TermelMeta

Available on crate feature term only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextCohesion

Sourceยง

const INIT: Self = Self::Atomic

Sourceยง

impl ConstInit for TextCursor

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextFit

Sourceยง

const INIT: Self = Self::None

Sourceยง

impl ConstInit for TextIndex

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextLayout

Sourceยง

const INIT: Self = Self

Sourceยง

impl ConstInit for TextLayoutSpan

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextLayoutStep

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextParseError

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextParseErrorKind

Sourceยง

const INIT: Self = Self::UnexpectedEof

Sourceยง

impl ConstInit for TextRange

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextScanner<'_>

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for TextSymbol

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Version

Sourceยง

const INIT: Self = Self::ZERO

Sourceยง

impl ConstInit for WindowId

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Xabc

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for XorShift16

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for XorShift32

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for XorShift64

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for XorShift128

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for XorShift128p

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Xoroshiro128pp

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Xyza8a

Available on crate feature rand only.

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for Xyza8b

Available on crate feature rand only.
Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for char7

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for char8

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for char16

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for charu

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for charu_niche

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for f32bits

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for f32bits_niche

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for f64bits

Sourceยง

const INIT: Self

Sourceยง

impl ConstInit for f64bits_niche

Sourceยง

const INIT: Self

Sourceยง

impl<'a> ConstInit for VersionFull<'a>

Sourceยง

const INIT: Self = Self::ZERO

Sourceยง

impl<B: ConstInit, C: ConstInit> ConstInit for ControlFlow<B, C>

Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit, E> ConstInit for Result<T, E>

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

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

const INIT: Self

Sourceยง

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

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

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature lin only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Angle<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Atomic<T>

Available on crate feature dep_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for BareBox<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Cast<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Cell<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Cmp<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Cycle<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Float<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Lane4_i32Example<T>

Available on crate feature _docs_examples only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for LazyCell<T>

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for LazyLock<T>

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for ManuallyDrop<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Mutex<T>

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for OnceCell<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for OnceLock<T>

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Option<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for PanicAssertUnwindSafe<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for devela::zall::Range<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for devela::zall::RangeFrom<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for devela::zall::RangeInclusive<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RangeTo<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for devela::zall::RangeToInclusive<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RcWeak<T>

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RefCell<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Reverse<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for RwLock<T>

Available on crate feature std only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Saturating<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for UnsafeCell<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T: ConstInit> ConstInit for Wrapping<T>

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature unsafe_layout only.
Sourceยง

const INIT: Self

Sourceยง

impl<T: Ord> ConstInit for BinaryHeap<T>

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for AtomicPtr<T>

Available on crate feature dep_portable_atomic only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for BTreeSet<T>

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for Bound<T>

Sourceยง

const INIT: Self = Self::Unbounded

Sourceยง

impl<T> ConstInit for ConstList<'_, T>

Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for Interval<T>

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

See the default implementation for more information.

Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for LinkedList<T>

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for PcmBuf<T, &[&[T]]>

Available on crate feature audio only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for PcmBuf<T, &[T]>

Available on crate feature audio only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for PcmBuf<T, &mut [&mut [T]]>

Available on crate feature audio only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for PcmBuf<T, &mut [T]>

Available on crate feature audio only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for PhantomData<T>

Sourceยง

const INIT: Self = Self

Sourceยง

impl<T> ConstInit for TypeResource<T>

Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for Vec<T>

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

impl<T> ConstInit for VecDeque<T>

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

impl<V: Copy + ConstInit, const N: usize> ConstInit for MapStaticConstU8Example<u8, V, N>

Sourceยง

const INIT: Self

Sourceยง

impl<Y: ConstInit, R: ConstInit> ConstInit for CoroutineState<Y, R>

Sourceยง

const INIT: Self

Sourceยง

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

Creates a new PRNG initialized with the default fixed seed.

Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature event only.
Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature grapheme only.
Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature grapheme only.
Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Available on crate feature alloc only.
Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

impl<const N: usize> ConstInit for Digest<N>

Sourceยง

const INIT: Self

Sourceยง

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

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i8> ConstInit for MaybeNiche<NonValueI8<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i8> ConstInit for NonValueI8<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i16> ConstInit for MaybeNiche<NonValueI16<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i16> ConstInit for NonValueI16<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i32> ConstInit for MaybeNiche<NonValueI32<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i32> ConstInit for NonValueI32<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i64> ConstInit for MaybeNiche<NonValueI64<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i64> ConstInit for NonValueI64<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i128> ConstInit for MaybeNiche<NonValueI128<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: i128> ConstInit for NonValueI128<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: isize> ConstInit for MaybeNiche<NonValueIsize<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: isize> ConstInit for NonValueIsize<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u8> ConstInit for MaybeNiche<NonValueU8<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u8> ConstInit for NonValueU8<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u16> ConstInit for MaybeNiche<NonValueU16<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u16> ConstInit for NonValueU16<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u32> ConstInit for MaybeNiche<NonValueU32<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u32> ConstInit for NonValueU32<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u64> ConstInit for MaybeNiche<NonValueU64<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u64> ConstInit for NonValueU64<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u128> ConstInit for MaybeNiche<NonValueU128<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: u128> ConstInit for NonValueU128<V>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: usize> ConstInit for MaybeNiche<NonValueUsize<V>>

Sourceยง

const INIT: Self

Sourceยง

impl<const V: usize> ConstInit for NonValueUsize<V>

Sourceยง

const INIT: Self