Skip to main content

SelectSeed

Trait SelectSeed 

Source
pub trait SelectSeed<S, V, C> {
    // Required method
    fn seed(&self, select: &mut S)
       where S: Selectable<V, C>,
             V: From<String>;
}
Expand description

Applies a source to a freshly-created Select.

Table::select_empty is generic over every SelectableDataSource, including backends whose Source is String and whose Select is not Expressive. So the source can’t be matched against SelectSource directly there — this trait dispatches on the concrete source type, keeping the Expressive requirement confined to the query-capable backends.

Required Methods§

Source

fn seed(&self, select: &mut S)
where S: Selectable<V, C>, V: From<String>,

Add this source to select as its FROM clause.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S, V, C> SelectSeed<S, V, C> for String

Source§

fn seed(&self, select: &mut S)
where S: Selectable<V, C>, V: From<String>,

Implementors§

Source§

impl<S, V, C> SelectSeed<S, V, C> for SelectSource<S>
where S: Expressive<V> + Clone, V: Clone,