Init

Trait Init 

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

A const initializer

Required Associated Constants§

Source

const INIT: Self

The initial value of Self

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.

Implementations on Foreign Types§

Source§

impl Init for ()

Source§

const INIT: Self = ()

Source§

impl<P: Default> Init for Lazy<P>

Available on crate feature once_cell only.
Source§

const INIT: Self

Source§

impl<P: Default> Init for Lazy<P>

Available on crate feature once_cell only.
Source§

const INIT: Self

Source§

impl<P: Init> Init for Mutex<P>

Available on crate feature parking_lot only.
Source§

const INIT: Self

Source§

impl<T> Init for Option<T>

Source§

const INIT: Self = None

Source§

impl<T> Init for Vec<T>

Available on crate feature alloc only.
Source§

const INIT: Self

Source§

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

Source§

const INIT: Self

Source§

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

Source§

const INIT: Self

Implementors§

Source§

impl Init for ScopedToken<'_>

Source§

const INIT: Self

Source§

impl<A> Init for Flag<A>

Source§

const INIT: Self

Source§

impl<A: ScalarAllocator> Init for SyncQueuePool<A>

Available on crate features parking_lot or std only.
Source§

const INIT: Self

Source§

impl<A: ScalarAllocator> Init for SyncStackPool<A>

Available on crate features parking_lot or std only.
Source§

const INIT: Self

Source§

impl<A: ScalarAllocator<Scalar = ()>> Init for DynamicToken<A>

Source§

const INIT: Self