pub trait TableData: Sealed {
const TYPE_ID: FieldTypeId;
// Required method
fn to_data(&self) -> ss_plugin_state_data;
}
Expand description
§A trait describing types usable as table keys and values
Required Associated Constants§
Required Methods§
Sourcefn to_data(&self) -> ss_plugin_state_data
fn to_data(&self) -> ss_plugin_state_data
§Convert to the raw FFI representation
Note: even though the signature specifies an owned value, this value technically
still borrows from self
, as it contains raw pointers (for string values)
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.