Struct alacritty::display::window::Replaceable[][src]

struct Replaceable<T>(Option<T>);
Expand description

Struct for safe in-place replacement.

This struct allows easily replacing struct fields that provide self -> Self methods in-place, without having to deal with constantly unwrapping the underlying Option.

Tuple Fields

0: Option<T>

Implementations

Replace the contents of the container.

Get immutable access to the wrapped value.

Get mutable access to the wrapped value.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.