Skip to main content

ConsistentWith

Trait ConsistentWith 

Source
pub trait ConsistentWith<T: ToInput + ?Sized>: MayHaveInput {
    // Provided methods
    fn is_consistent_with(&self, other: &T) -> bool { ... }
    fn is_consistent_with_strict(&self, other: &T) -> bool { ... }
}
Expand description

Trait for objects that can be checked for consistency with another object.

Provided Methods§

Source

fn is_consistent_with(&self, other: &T) -> bool

Checks if self is consistent with the given input.

Note: Returns true if any of the inputs is not set.

Source

fn is_consistent_with_strict(&self, other: &T) -> bool

Checks if self is consistent with the given input.

Note: Returns false if xor of the inputs is not set.

Implementors§

Source§

impl<T: MayHaveInput, U: ToInput + ?Sized> ConsistentWith<U> for T