Skip to main content

HasScope

Trait HasScope 

Source
pub trait HasScope {
    type Scope;
    type Used;
    type With<Sources>;
}
Expand description

Reads the scope of a SELECT marker and records clause sources on it.

Builder methods such as .r#where(expr) use M::With<E::Sources> as the new marker type, so the clause is checked later with the rest of the query.

Required Associated Types§

Source

type Scope

The FROM/JOIN sources.

Source

type Used

Sources of every clause added so far.

Source

type With<Sources>

This marker after adding a clause that reads Sources, recorded against the current scope.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<Marker, Scope, Used> HasScope for Scoped<Marker, Scope, Used>

Source§

type Scope = Scope

Source§

type Used = Used

Source§

type With<Sources> = Scoped<Marker, Scope, (Used, At<Scope, Sources>)>