Crate try_as_traits

Crate try_as_traits 

Source
Expand description

Contains the traits TryAsRef, TryAsMut and TypedContainer, used by the crate try_as to simplfy dealing with enums enumerating types.

See the the crate documentation for more information and documentation on how to use the traits.

Traitsยง

TryAsMut
A version of AsMut<T> that can fail.
TryAsRef
A version of AsRef<T> that can fail.
TypedContainer
A trait for types that can hold values of different types.