WitnessConstructible

Trait WitnessConstructible 

Source
pub trait WitnessConstructible<'brand, W>: Sized {
    // Required method
    fn witness(inference_context: &Context<'brand>, witness: W) -> Self;
}

Required Methods§

Source

fn witness(inference_context: &Context<'brand>, witness: W) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'brand, N> WitnessConstructible<'brand, <N as Marker>::Witness> for Arc<Node<N>>
where N: Marker, N::CachedData: WitnessConstructible<'brand, N::Witness>,

Source§

fn witness(inference_context: &Context<'brand>, value: N::Witness) -> Self

Implementors§

Source§

impl<'brand, J> WitnessConstructible<'brand, Option<Value>> for ConstructData<'brand, J>

Source§

impl<'brand, W> WitnessConstructible<'brand, W> for Arrow<'brand>

Source§

impl<'brand, W, N> WitnessConstructible<'brand, W> for Hiding<'brand, N>
where N: WitnessConstructible<'brand, W> + CoreConstructible<'brand>,