Crate stable_try_trait_v2

Source
Expand description

A simple stable replacement for the unstable Try, FromResidual, and Residual traits under the try_trait_v2 feature

Modules§

internal
core’s internal helper types, not part of the public try_trait_v2 API, but exported here for convenience

Macros§

try_
A simple macro emulating the ? operator for this crate’s Try types, useful for contexts generic over this crate’s Try types where the ? operator is not usable.

Traits§

FromResidual
Used to specify which residuals can be converted into which core::ops::Try types.
Residual
Allows retrieving the canonical type implementing Try that has this type as its residual and allows it to hold an O as its output.
Try
see ::core::ops::Try

Type Aliases§

ChangeOutputType