//! Error types associated with the reinforcement learning process.
#[derive(Debug, Clone, PartialEq)]/// A general error that has occurred during a learning operation.
pubstructLearnerError{msg: String,
}impl<'a>LearnerError{/// Instantiates a new `LearnerError` with a message.
pubfnnew(msg: String)->Self{Self{ msg }}/// A message associated with this error.
pubfnmessage(&self)-> String{self.msg.clone()}}