pub struct OutputRelation {
pub contains: Option<bool>,
pub strict_contains: Option<bool>,
pub contained: Option<bool>,
pub strict_contained: Option<bool>,
pub intersect: Option<bool>,
pub disjoint: Option<bool>,
}Expand description
Returned by the relation function.
All fields are made of a Option
- If you didn’t ask for it when filling the
InputRelationstruct - If the relation algorithm didn’t evaluate this relation because the
early_exitflag was set.
Fields§
§contains: Option<bool>§strict_contains: Option<bool>§contained: Option<bool>§strict_contained: Option<bool>§intersect: Option<bool>§disjoint: Option<bool>Implementations§
Source§impl OutputRelation
impl OutputRelation
pub fn false_from_input(relation: InputRelation) -> Self
pub fn true_from_input(relation: InputRelation) -> Self
pub fn make_contains_if_set(self) -> Self
Sourcepub fn make_strict_contains_if_set(self) -> Self
pub fn make_strict_contains_if_set(self) -> Self
Set both the contains and strict_contains field to true if they are set
pub fn make_contained_if_set(self) -> Self
Sourcepub fn make_strict_contained_if_set(self) -> Self
pub fn make_strict_contained_if_set(self) -> Self
Set both the contained and strict_contained field to true if they are set
pub fn make_intersect_if_set(self) -> Self
pub fn make_disjoint_if_set(self) -> Self
pub fn strip_strict(self) -> Self
pub fn contains() -> Self
pub fn strict_contains() -> Self
pub fn contained() -> Self
pub fn strict_contained() -> Self
pub fn intersect() -> Self
pub fn disjoint() -> Self
pub fn any_relation(&self) -> bool
pub fn swap_contains_relation(self) -> Self
Trait Implementations§
Source§impl BitOr for OutputRelation
impl BitOr for OutputRelation
Source§impl BitOrAssign for OutputRelation
impl BitOrAssign for OutputRelation
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for OutputRelation
impl Clone for OutputRelation
Source§fn clone(&self) -> OutputRelation
fn clone(&self) -> OutputRelation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputRelation
impl Debug for OutputRelation
Source§impl Default for OutputRelation
impl Default for OutputRelation
Source§fn default() -> OutputRelation
fn default() -> OutputRelation
Returns the “default value” for a type. Read more
Source§impl PartialEq for OutputRelation
impl PartialEq for OutputRelation
impl Copy for OutputRelation
impl Eq for OutputRelation
impl StructuralPartialEq for OutputRelation
Auto Trait Implementations§
impl Freeze for OutputRelation
impl RefUnwindSafe for OutputRelation
impl Send for OutputRelation
impl Sync for OutputRelation
impl Unpin for OutputRelation
impl UnwindSafe for OutputRelation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more