pub trait SavedState: Sized {
// Required methods
fn save_state(&self) -> Result<Vec<u8>>;
fn from_state(bytes: &[u8]) -> Result<Self>;
}Expand description
A residual that can cross an array-only callback boundary without rerunning its forward calculation.
Required Methods§
Sourcefn save_state(&self) -> Result<Vec<u8>>
fn save_state(&self) -> Result<Vec<u8>>
Copy the saved numerical state into its fixed byte layout.
Sourcefn from_state(bytes: &[u8]) -> Result<Self>
fn from_state(bytes: &[u8]) -> Result<Self>
Restore numerical state from bytes produced by this extension.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.