either-or-both 0.3.1

The enums EitherOrBoth with the three variants Left, Right, Both and Either with the Left and Right variants
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Tests for the errors of this crate

use either_or_both::TryFromOptionsError;

#[test]
fn display() {
    assert_eq!(
        TryFromOptionsError.to_string(),
        "Either the left, right or both values must be present".to_owned()
    );
}