pub struct EnvState { /* private fields */ }Expand description
An O(1), serializable snapshot of a TradingEnv’s mutable state — the time
cursor plus the full [Book] (holdings, cash, RNG cursor, decision trace, prior
NAV). Everything an env needs to resume an exact trajectory; the immutable
config (frozen data, window, costs, seed) lives in the env and is not copied.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvState
impl<'de> Deserialize<'de> for EnvState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for EnvState
Auto Trait Implementations§
impl Freeze for EnvState
impl RefUnwindSafe for EnvState
impl Send for EnvState
impl Sync for EnvState
impl Unpin for EnvState
impl UnsafeUnpin for EnvState
impl UnwindSafe for EnvState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more