pub trait AltrepSerialize: Sized {
// Required methods
fn serialized_state(&self) -> SEXP;
fn unserialize(state: SEXP) -> Option<Self>;
}Expand description
Trait for ALTREP types that support serialization.
Required Methods§
Sourcefn serialized_state(&self) -> SEXP
fn serialized_state(&self) -> SEXP
Convert the ALTREP data to a serializable R object.
Sourcefn unserialize(state: SEXP) -> Option<Self>
fn unserialize(state: SEXP) -> Option<Self>
Reconstruct the ALTREP data from a serialized state.
Return None if the state is invalid or cannot be deserialized.
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.