standing_relations/convenience/dynamic.rs
1use crate::{Dynamic, Op_, Relation};
2
3impl<C: Op_> Relation<C> {
4 /// Simplifies the inferred type-signature of a relation at the cost of requiring dynamic
5 /// dispatch at runtime.
6 ///
7 /// Try inserting this in the middle of a big relation if the compiler is running slowly or
8 /// using up too much memory.
9 pub fn dynamic<'a>(self) -> Relation<Dynamic<'a, C::T>>
10 where
11 C: 'a,
12 {
13 self.dynamic_shown().hidden()
14 }
15}