//! Policy.
usesuper::Env;// use anyhow::Result;
/// A policy on an environment.
////// Policy is a mapping from an observation to an action.
/// The mapping can be either of deterministic or stochastic.
pubtraitPolicy<E: Env> {/// Configuration of the policy.
typeConfig:Clone;/// Builds the policy.
fnbuild(config:Self::Config)->Self;/// Sample an action given an observation.
fnsample(&mutself, obs:&E::Obs)->E::Act;}