pub fn field_fn<N, Func, Args>(
        &mut self,
        protocol: Protocol,
        name: N,
        f: Func,
    ) -> Result<(), ContextError>
    where
        N: InstFnNameHash,
        Func: InstFn<Args>,
    {
        self.assoc_fn(name, f, ModuleAssociatedKind::FieldFn(protocol))
    }
/// Install a protocol function for the given field.
Install a protocol function for the given field.
Install a protocol function for the given field .
pub fn field_fn<N, Func, Args>(
        &mut self,
        protocol: Protocol,
        name: N,
        f: Func,
    ) -> Result<(), ContextError>
    where
        N: InstFnNameHash,
        Func: InstFn<Args>,
    {
        self.assoc_fn(name, f, ModuleAssociatedKind::FieldFn(protocol))
    }
pub fn field_fn < N , Func , Args > ( & mut self , protocol : Protocol , name : N , f : Func , ) -> Result < ( ) , ContextError > where N : InstFnNameHash , Func : InstFn < Args > , { self . assoc_fn ( name , f , ModuleAssociatedKind :: FieldFn ( protocol ) ) }
Install a protocol function for the given field.
Install a protocol function for the given field .
&mut self
protocol
Protocol
name
N
f
Func
&mut self
protocol
Protocol
name
N
f
Func