Trait frunk_core::source · [−]
Trait for borrowing a coproduct element by type
This trait is part of the implementation of the inherent method
Coproduct::get. Please see that method for more information.
You only need to import this trait when working with generic
Coproducts of unknown type. If you have a Coproduct of known type,
co.get() should “just work” even without the trait.
Borrow an element from a coproduct by type.
Please see the inherent method for more information.
The only difference between that inherent method and this trait method is the location of the type parameters. (here, they are on the trait rather than the method)