Struct tabled::settings::object::InversionCombination

source ·
pub struct InversionCombination<O, I> { /* private fields */ }
Available on crate feature std only.
Expand description

Inversion struct used for chaining Object’s.

Returns cells which are present in 2 sets. But not in one of them

Trait Implementations§

source§

impl<O: Debug, I: Debug> Debug for InversionCombination<O, I>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<I, O> Object<I> for InversionCombination<O, I>
where O: Object<I>, I: Records + ExactRecords,

§

type Iter = InversionIter

An Iterator which returns a list of cells.
source§

fn cells(&self, records: &I) -> Self::Iter

Cells returns a set of coordinates of cells.
source§

fn and<O>(self, rhs: O) -> UnionCombination<Self, O, R>
where Self: Sized,

Combines cells. It doesn’t repeat cells.
source§

fn not<O>(self, rhs: O) -> DiffCombination<Self, O, R>
where Self: Sized,

Excludes rhs cells from this cells.
source§

fn intersect<O>(self, rhs: O) -> IntersectionCombination<Self, O, R>
where Self: Sized,

Returns cells which are present in both Objects only.
source§

fn inverse(self) -> InversionCombination<Self, R>
where Self: Sized,

Returns cells which are not present in target Object.

Auto Trait Implementations§

§

impl<O, I> Freeze for InversionCombination<O, I>
where O: Freeze,

§

impl<O, I> RefUnwindSafe for InversionCombination<O, I>

§

impl<O, I> Send for InversionCombination<O, I>
where O: Send, I: Send,

§

impl<O, I> Sync for InversionCombination<O, I>
where O: Sync, I: Sync,

§

impl<O, I> Unpin for InversionCombination<O, I>
where O: Unpin, I: Unpin,

§

impl<O, I> UnwindSafe for InversionCombination<O, I>
where O: UnwindSafe, I: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.