This reference describes unreleased code on main; no release documents it yet.

rlmesh::adapters::WrappedPredict

structPreviewuse rlmesh::adapters::WrappedPredict;[source]

A predict callable composed with an adapter, usable as a model policy.

struct WrappedPredict<A, F>

call

method[source]
fn call(&mut self, observation: Value) -> Result<Value>

Invoke this callable.

adapter

method[source]
fn adapter(&self) -> &A

Borrow the wrapped adapter.

adapter_mut

method[source]
fn adapter_mut(&mut self) -> &mut A

Mutably borrow the wrapped adapter.

Trait implementations

  • impl<A: AdapterBase + Send + 'static, F: FnMut(Value) -> Result<Value> + Send + 'static> Policy for WrappedPredict<A, F>