Module eso::borrow[][src]

Expand description

The Ownable and Borrowable traits abstract over the duality between owned and borrowed types, much in the same way as the standard-library Borrow and ToOwned traits do.

The difference between these and the standard-library traits is that the traits here are more generic. See the specific traits for details.

Traits

Borrowable

A value that can be borrowed as generalized reference.

Ownable

A version of the ToOwned trait describing generalized references from which an owned form can be cloned.

Reborrowable

Conversion from one generalized reference type into another.