pub trait StrongType: Any {
// Required method
fn get_s_type(&self) -> &dyn StructureType;
}Expand description
Needed to be applied to the serializable/deserializable structures
Required Methods§
Sourcefn get_s_type(&self) -> &dyn StructureType
fn get_s_type(&self) -> &dyn StructureType
Need to return reference of structure type enum inside structure
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".