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: PartialEq<W>, W> PartialEq<W> for LateInit<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: PartialOrd<W>, W> PartialOrd<W> for LateInit<T>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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.