Skip to main content

SetSource

Trait SetSource 

Source
pub trait SetSource<V: ValueDomain>:
    Prepare
    + Explain
    + PlanIdentity
    + PlanInputs
    + Estimated {
    // Required method
    fn set<'a>(
        prepared: Self::Prepared<'a>,
    ) -> QueryResult<GrHashSet<V::Value<'a>>>
       where Self: 'a,
             V::Value<'a>: Eq + Hash;
}

Required Methods§

Source

fn set<'a>(prepared: Self::Prepared<'a>) -> QueryResult<GrHashSet<V::Value<'a>>>
where Self: 'a, V::Value<'a>: Eq + Hash,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, S, V> SetSource<V> for HashSet<T, S>
where T: 'static + Clone + Eq + Hash + Display + Send + Sync, for<'a> V: ValueDomain<Value<'a> = T>, S: 'static + Clone + BuildHasher + Send + Sync,

Source§

fn set<'a>(prepared: Self::Prepared<'a>) -> QueryResult<GrHashSet<V::Value<'a>>>
where Self: 'a,

Source§

impl<T, V, const N: usize> SetSource<V> for [T; N]
where T: 'static + Clone + Eq + Hash + Display + Send + Sync, for<'a> V: ValueDomain<Value<'a> = T>,

Source§

fn set<'a>(prepared: Self::Prepared<'a>) -> QueryResult<GrHashSet<V::Value<'a>>>
where Self: 'a,

Source§

impl<T, V> SetSource<V> for GrHashSet<T>
where T: 'static + Clone + Eq + Hash + Display + Send + Sync, for<'a> V: ValueDomain<Value<'a> = T>,

Source§

fn set<'a>(prepared: Self::Prepared<'a>) -> QueryResult<GrHashSet<V::Value<'a>>>
where Self: 'a,

Source§

impl<T, V> SetSource<V> for Vec<T>
where T: 'static + Clone + Eq + Hash + Display + Send + Sync, for<'a> V: ValueDomain<Value<'a> = T>,

Source§

fn set<'a>(prepared: Self::Prepared<'a>) -> QueryResult<GrHashSet<V::Value<'a>>>
where Self: 'a,

Implementors§