pub struct Slot<'s, 'f> { /* private fields */ }
Expand description

A value slot to fill using the Fill trait.

Implementations

Fill the slot with a value.

The given value doesn’t need to satisfy any particular lifetime constraints.

Panics

Calling more than a single fill method on this slot will panic.

Fill the slot with a debuggable value.

The given value doesn’t need to satisfy any particular lifetime constraints.

Panics

Calling more than a single fill method on this slot will panic.

Fill the slot with a displayable value.

The given value doesn’t need to satisfy any particular lifetime constraints.

Panics

Calling more than a single fill method on this slot will panic.

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.