1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{Dynamic, Op_, Relation};

impl<C: Op_> Relation<C> {
    /// Simplifies the inferred type-signature of a relation at the cost of requiring dynamic
    /// dispatch at runtime.
    ///
    /// Try inserting this in the middle of a big relation if the compiler is running slowly or
    /// using up too much memory.
    pub fn dynamic<'a>(self) -> Relation<Dynamic<'a, C::T>>
    where
        C: 'a,
    {
        self.dynamic_shown().hidden()
    }
}