Skip to content

xor() combinator is stable since 1.37.0 #77

@wischi-chr

Description

@wischi-chr

The combinator pages states:

Rust nightly support xor() for Option types, which returns Some only if one expression got Some, but not both.

And here the relevant part from the std source:

#[stable(feature = "option_xor", since = "1.37.0")]
pub fn xor(self, optb: Option<T>) -> Option<T>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions