Trait r3_core::utils::Init

source ·
pub trait Init {
    const INIT: Self;
}
Expand description

Trait for types having a constant default value. This is essentially a constant version of Default.

This trait is subject to the application-side API stability guarantee.

Required Associated Constants§

source

const INIT: Self

The default value.

Implementations on Foreign Types§

source§

impl Init for u32

source§

const INIT: Self = 0u32

source§

impl Init for AtomicI32

source§

const INIT: Self = _

source§

impl<T: Init> Init for Cell<T>

source§

const INIT: Self = _

source§

impl<A: Init, B: Init, C: Init, D: Init, E: Init, F: Init, G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

const INIT: Self = _

source§

impl Init for u64

source§

const INIT: Self = 0u64

source§

impl Init for AtomicUsize

source§

const INIT: Self = _

source§

impl Init for u16

source§

const INIT: Self = 0u16

source§

impl Init for i8

source§

const INIT: Self = 0i8

source§

impl<G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (G, H, I, J, K, L)

source§

const INIT: Self = _

source§

impl<T: ?Sized> Init for PhantomData<T>

source§

const INIT: Self = PhantomData

source§

impl<L: Init> Init for (L,)

source§

const INIT: Self = _

source§

impl Init for AtomicIsize

source§

const INIT: Self = _

source§

impl<F: Init, G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (F, G, H, I, J, K, L)

source§

const INIT: Self = _

source§

impl<T> Init for MaybeUninit<T>

source§

const INIT: Self = _

source§

impl<B: Init, C: Init, D: Init, E: Init, F: Init, G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (B, C, D, E, F, G, H, I, J, K, L)

source§

const INIT: Self = _

source§

impl<T: Init> Init for RefCell<T>

source§

const INIT: Self = _

source§

impl Init for ()

source§

const INIT: Self = ()

source§

impl Init for i32

source§

const INIT: Self = 0i32

source§

impl<T> Init for Option<T>

source§

const INIT: Self = None

source§

impl<K: Init, L: Init> Init for (K, L)

source§

const INIT: Self = _

source§

impl Init for AtomicI16

source§

const INIT: Self = _

source§

impl<C: Init, D: Init, E: Init, F: Init, G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (C, D, E, F, G, H, I, J, K, L)

source§

const INIT: Self = _

source§

impl Init for i128

source§

const INIT: Self = 0i128

source§

impl Init for i64

source§

const INIT: Self = 0i64

source§

impl Init for f64

source§

const INIT: Self = 0f64

source§

impl Init for char

source§

const INIT: Self = '\0'

source§

impl<T: Init> Init for ManuallyDrop<T>

source§

const INIT: Self = _

source§

impl<T: Init, I: Init> Init for UnsyncTokenLock<T, I>

source§

const INIT: Self = _

source§

impl Init for AtomicU8

source§

const INIT: Self = _

source§

impl<T: Init, I: Init> Init for TokenLock<T, I>

source§

const INIT: Self = _

source§

impl Init for i16

source§

const INIT: Self = 0i16

source§

impl Init for u128

source§

const INIT: Self = 0u128

source§

impl<T, const N: usize> Init for ArrayVec<T, N>

source§

const INIT: Self = _

source§

impl Init for AtomicU64

source§

const INIT: Self = _

source§

impl Init for AtomicBool

source§

const INIT: Self = _

source§

impl Init for bool

source§

const INIT: Self = false

source§

impl Init for AtomicI64

source§

const INIT: Self = _

source§

impl Init for f32

source§

const INIT: Self = 0f32

source§

impl<T> Init for AtomicPtr<T>

source§

const INIT: Self = _

source§

impl Init for usize

source§

const INIT: Self = 0usize

source§

impl Init for &str

source§

const INIT: Self = ""

source§

impl<T: Init> Init for UnsafeCell<T>

source§

const INIT: Self = _

source§

impl<J: Init, K: Init, L: Init> Init for (J, K, L)

source§

const INIT: Self = _

source§

impl Init for AtomicI8

source§

const INIT: Self = _

source§

impl Init for u8

source§

const INIT: Self = 0u8

source§

impl<D: Init, E: Init, F: Init, G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (D, E, F, G, H, I, J, K, L)

source§

const INIT: Self = _

source§

impl Init for isize

source§

const INIT: Self = 0isize

source§

impl<T: 'static> Init for &[T]

source§

const INIT: Self = _

source§

impl<Tag: ?Sized> Init for SingletonTokenId<Tag>

source§

const INIT: Self = _

source§

impl<I: Init, J: Init, K: Init, L: Init> Init for (I, J, K, L)

source§

const INIT: Self = _

source§

impl Init for AtomicU16

source§

const INIT: Self = _

source§

impl Init for AtomicU32

source§

const INIT: Self = _

source§

impl<H: Init, I: Init, J: Init, K: Init, L: Init> Init for (H, I, J, K, L)

source§

const INIT: Self = _

source§

impl<T: Init, const LEN: usize> Init for [T; LEN]

source§

const INIT: Self = _

source§

impl<E: Init, F: Init, G: Init, H: Init, I: Init, J: Init, K: Init, L: Init> Init for (E, F, G, H, I, J, K, L)

source§

const INIT: Self = _

Implementors§

source§

impl Init for Closure

source§

impl Init for ClosureEnv

source§

const INIT: Self = _

source§

impl Init for Duration

source§

const INIT: Self = Self::ZERO

source§

impl Init for Time

source§

const INIT: Self = Self::ZERO

source§

impl<System: KernelStatic> Init for r3_core::kernel::hunk::Hunk<System>

source§

const INIT: Self = _

source§

impl<System: KernelBase + KernelStatic, T> Init for r3_core::hunk::Hunk<System, [T]>

source§

const INIT: Self = _

source§

impl<T: Init> Init for RawCell<T>

source§

const INIT: Self = _

source§

impl<const LEN: usize, const ALIGN: usize> Init for AlignedStorage<LEN, ALIGN>where Align<ALIGN>: Alignment,

source§

const INIT: Self = _