Cargo Features

[dependencies]
woe = { version = "0.1.8", default-features = false, features = ["either_methods", "nightly", "try_trait", "trusted_len", "never_type", "termination_trait", "product_trait", "sum_trait", "from_iterator_trait", "no_std"] }
default = either_methods

The either_methods feature is set by default whenever woe is added without default-features = false somewhere in the dependency tree.

either_methods default = either

This uses the either crate to enable methods which work on Either<LocalErr, FatalErr.

nightly = from_iterator_trait, never_type, product_trait, sum_trait, termination_trait, trusted_len, try_trait

Enable all nightly-only features of the crate.

try_trait from_iterator_trait? nightly? product_trait? sum_trait?

Allow woe::Result implement std::ops::Try

trusted_len nightly?

Enable woe::{IntoIter, Iter, IterMut} to all implement TrustedLen.

never_type nightly? termination_trait?

Enable the ! type, which allows a cheap into_ok conversion if the two error types are both !.

termination_trait nightly? = never_type

Enable implementation of the Termination trait when Result::Ok is () or !, which lets woe::Result be used as the return type of main

product_trait nightly? = try_trait

Enable the Product trait, whose implementation requires the Try trait.

sum_trait nightly? = try_trait

Enable the Sum trait, whose implementation requires the Try trait.

from_iterator_trait nightly? = try_trait

Enable the FromIterator trait, whose implementation requires the Try trait.

no_std

Make the crate no_std-compatible, meaning it can be used in contexts which don't have the standard library. Note that this deactivates the termination_trait feature, which relies on std::process (not part of core, and thus not supported in a no_std context).

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

either either_methods