Skip to main content

AnnotationFn

Trait AnnotationFn 

Source
pub trait AnnotationFn<N = Expression>: Fn(&N) -> Vec<Self::Annotation> {
    type Annotation: Annotation;
}

Required Associated Types§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<N, A, F> AnnotationFn<N> for F
where A: Annotation, F: Fn(&N) -> Vec<A>,