Docs.rs
std1-0.2.0
std1 0.2.0
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Repository
crates.io
Source
Owners
colbyn
Dependencies
either ^1.8.1
normal
Versions
33.33%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
std1
0.2.0
Module either
Module Items
Macros
Structs
Enums
Traits
In crate std1
std1
Module
either
Copy item path
Source
Macros
§
for_
both
Evaluate the provided expression for both
Either::Left
and
Either::Right
.
try_
left
Macro for unwrapping the left side of an
Either
, which fails early with the opposite side. Can only be used in functions that return
Either
because of the early return of
Right
that it provides.
try_
right
Dual to
try_left!
, see its documentation for more information.
Structs
§
Iter
Either
Iterator that maps left or right iterators to corresponding
Either
-wrapped items.
Enums
§
Either
The enum
Either
with variants
Left
and
Right
is a general purpose sum type with two cases.
Traits
§
Into
Either
Provides methods for converting a type
Self
into either a
Left
or
Right
variant of
Either<Self, Self>
.