docs.rs failed to build convertible-0.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Convertible
Checked, typesafe, ergonomic runtime conversion of types.
Overview
Defines the Convertible<From>
trait, which defines a convert
method from &From
to Option<Self>
.
Additionally, it defines the universal mixin trait Raw
, which
adds the to
method to all types to allow for ergonomic usage
of these conversions.
This can be used to implement extensible enums based on a raw representation that variants can be created from
Example
use ;