Struct lateinit::LateInit [] [src]

pub struct LateInit<T>(_);

The primary type for this crate. Initialize before use.

Methods

impl<T> LateInit<T>
[src]

[src]

Create a new LateInit.

[src]

Assign a value. Panics if called more than once.

impl<T: Clone> LateInit<T>
[src]

[src]

Clone contained value. Panics in debug profile if called before initialization.

Note that Clone is not implemented because LateInit doesn't support mutation, so clone_from is impossible.

Trait Implementations

impl<T> Sync for LateInit<T>
[src]

impl<T> !Send for LateInit<T>
[src]

impl<T> Deref for LateInit<T>
[src]

The resulting type after dereferencing.

[src]

Deref to contained value. Panics in debug if called before initialization.

impl<T> AsRef<T> for LateInit<T>
[src]

[src]

Panics in debug if called before initialization.

impl<T: Debug> Debug for LateInit<T>
[src]

[src]

Delegates to Debug implementation on contained value. This is a checked access.

impl<T: Display> Display for LateInit<T>
[src]

[src]

Delegates to Display implementation on contained value. This is a checked access.