Struct mentat_transaction::query::Known [] [src]

pub struct Known<'s, 'c> {
    pub schema: &'s Schema,
    pub cache: Option<&'c (CachedAttributes + 'c)>,
}

A convenience wrapper around things known in memory: the schema and caches. We use a trait object here to avoid making dozens of functions generic over the type of the cache. If performance becomes a concern, we should hard-code specific kinds of cache right here, and/or eliminate the Option.

Fields

Methods

impl<'s, 'c> Known<'s, 'c>
[src]

[src]

[src]

impl<'s, 'c> Known<'s, 'c>
[src]

This is CachedAttributes, but with handy generic parameters. Why not make the trait generic? Because then we can't use it as a trait object in Known.

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'s, 'c> Copy for Known<'s, 'c>
[src]

impl<'s, 'c> Clone for Known<'s, 'c>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more