Crate pgat

Source
Expand description

See the Crates.io page for the README.

Structs§

ReferenceProxy
A proxy that simply returns a reference to the owned value.

Traits§

ProxyToOwned
Provides a generic way to clone owned values from arbitrary proxies.
ProxyView
A type generator that produces a view type for a given lifetime.
ViewInverse
This trait is implemented for all view types and allows obtaining the proxy that produces this view. It can be used by abstract containers to infer the proxy type from the view type to allow the user to directly name the view type instead of the proxy type. This is only possible because a view type always has a unique proxy type associated with it, which is the one that produces the view. This also means that the definition of these two traits mutually requires both to be defined simultaneously for any view and proxy pair.

Type Aliases§

Owned
A convenience type alias to get an owned value from a proxy.
View
A convenience type alias to get a view from a proxy and a lifetime.