Enum fxbox_taxonomy::util::Exactly [] [src]

pub enum Exactly<T> {
    Empty,
    Exactly(T),
    Conflict,
}

A marker for a request that a expects a specific value.

Variants

Empty

No constraint.

Exactly

Expect a specific value.

Conflict

Two conflicting constraints (or more) have been put on the value.

Methods

impl<T> Exactly<T> where T: PartialEq

fn and(self, other: Self) -> Self

Combine two constraints.

fn is_empty(&self) -> bool

fn matches(&self, value: &T) -> bool

Trait Implementations

impl<T: Deserialize> Deserialize for Exactly<T>

fn deserialize<__D>(deserializer: &mut __D) -> Result<Exactly<T>, __D::Error> where __D: Deserializer

impl<T: Serialize> Serialize for Exactly<T>

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

impl<T> Default for Exactly<T>

fn default() -> Self

Derived Implementations

impl<T: Debug> Debug for Exactly<T>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<T: Clone> Clone for Exactly<T>

fn clone(&self) -> Exactly<T>

1.0.0fn clone_from(&mut self, source: &Self)