Structs§
- Consume
OnDrop - A zero-overhead wrapper around
T. When aConsumeOnDrop<T>is dropped, the underlyingTisConsume::consumed. - With
Consumer - A pair consisting of a
Tand aConsumer<T>. When this pair is dropped, theTwill be consumed by theConsumer.
Traits§
- Consume
- This trait is for types with a specified means of consumption.
It is a counterpart to
Drop. WhileDrop::droptakesselfby mutable reference,Consume::consumetakesselfby value. - Consumer
- A type implementing
Consumer<T>is one which can consume a value of typeT. In particular, anyFnOnce(T)is also aConsumer<T>.