Module eso::eso[][src]

Expand description

The Eso type and associated traits for advanced reference wrangling.

Beware that the flexibility of Eso comes at a rather high cost in ergonomics. The types are pretty complex and the where clauses are unwieldy. You should think twice before exposing anything related to it on the surface of your library.

Eso is meant as a building block for libraries that need the additional flexibility compared to the standard Cow type.

Modules

req

Shorthand traits for requirements on Maybes to keep the where clauses short and more readable.

Enums

Eso

A three-way choice between an Ephemeral reference (i.e. with a lifetime that is not 'static), a Static reference and an Owned value.

Type Definitions

ConstrainedEsoOfEso

An Eso of Esos, but the inner Esos are constrained to definitely contain the corresponding varient.