[][src]Module structural::convert

Traits for converting between structural types.

The reason these traits exist instead of using From and TryFrom is, because structural types are usually converted from generic types bounded by the Foo_SI traits generated by the Structural derive macro, and the Foo_SI trait is implemented by the Foo type, which means that those impls would overlap with the impl From<T> for T impl in the standard lbirary.

Structs

EmptyTryFromError

The "default" error for the TryFromStructural::Error associated type, for when there are no details for how the conversion failed.

TryFromError

The error type returned by TryFromStructural and TryIntoStructural.

Traits

FromStructural

For conversions between structural types.

IntoStructural

For conversions between structural types.

TryFromStructural

For fallible conversions between structural types.

TryIntoStructural

For fallible conversions between structural types.