Trait rand_functors::Inner

source ·
pub trait Inner: Clone + Eq + Hash + PartialEq { }
Expand description

A valid inner type for a Functor.

Clone is required because most non-trivial Functor implementations will need to clone their inner type. Eq and Hash are required to allow for Functor implementations involving maps and sets. It was determined that Hash was a less burdensome requirement than Ord.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Clone + Eq + Hash + PartialEq> Inner for T