differential_dogs3

Struct CollectionExtender

Source
pub struct CollectionExtender<K, V, T, R, P, F>
where K: ExchangeData, V: ExchangeData, T: Lattice + ExchangeData + Timestamp, R: Monoid + Multiply<Output = R> + ExchangeData, F: Fn(&P) -> K + Clone,
{ /* private fields */ }

Trait Implementations§

Source§

impl<G, K, V, R, P, F> PrefixExtender<G, R> for CollectionExtender<K, V, G::Timestamp, R, P, F>
where G: Scope, K: ExchangeData + Hash + Default, V: ExchangeData + Hash + Default, P: ExchangeData, G::Timestamp: Lattice + ExchangeData, R: Monoid + Multiply<Output = R> + ExchangeData, F: Fn(&P) -> K + Clone + 'static,

Source§

type Prefix = P

The required type of prefix to extend.
Source§

type Extension = V

The type to be produced as extension.
Source§

fn count( &mut self, prefixes: &Collection<G, (P, usize, usize), R>, index: usize, ) -> Collection<G, (P, usize, usize), R>

Annotates prefixes with the number of extensions the relation would propose.
Source§

fn propose( &mut self, prefixes: &Collection<G, P, R>, ) -> Collection<G, (P, V), R>

Extends each prefix with corresponding extensions.
Source§

fn validate( &mut self, extensions: &Collection<G, (P, V), R>, ) -> Collection<G, (P, V), R>

Restricts proposed extensions by those the extender would have proposed.

Auto Trait Implementations§

§

impl<K, V, T, R, P, F> Freeze for CollectionExtender<K, V, T, R, P, F>
where F: Freeze, T: Freeze,

§

impl<K, V, T, R, P, F> !RefUnwindSafe for CollectionExtender<K, V, T, R, P, F>

§

impl<K, V, T, R, P, F> !Send for CollectionExtender<K, V, T, R, P, F>

§

impl<K, V, T, R, P, F> !Sync for CollectionExtender<K, V, T, R, P, F>

§

impl<K, V, T, R, P, F> Unpin for CollectionExtender<K, V, T, R, P, F>
where F: Unpin, P: Unpin, T: Unpin,

§

impl<K, V, T, R, P, F> !UnwindSafe for CollectionExtender<K, V, T, R, P, F>

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> CopyAs<T> for T

Source§

fn copy_as(self) -> T

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<'a, S, T> Semigroup<&'a S> for T
where T: Semigroup<S>,

Source§

fn plus_equals(&mut self, rhs: &&'a S)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
Source§

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

Source§

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>,

Source§

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.