docs.rs failed to build option_trait-1.0.7
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.
Visit the last successful build:
option_trait-1.0.6
option_trait
Provides the Optional
trait for Option
s, as well as compile-time managed Option
alternatives, all generalized under the trait Maybe
.
Maybe<T>
is implemented for:
Option<T>
- Run-time managed
- Also implements
Optional
andPureMaybe
T
and()
- Compile-time managed
- Also implements
PureStaticMaybe
,PureMaybe
andStaticMaybe
[T; 1]
and[T; 0]
- Compile-time managed
- Can be managed using constant expressions, but with some difficulty
- Also implements
StaticMaybe
OptCell<T, _>
(only if featureopt_cell
is enabled)- Compile-time managed
- Can be more easily managed using boolean constant expressions
- Has const methods
- Also implements
StaticMaybe
Examples
This is how i like to handle optional function arguments with maximum flexibility.
use *;
f;
f;
f;
f;
f;
f;
f;
f;