pub trait UpgradePurpose {
// Required methods
fn upgrade_purpose(&self) -> &UpgradePurposeType;
fn upgrade_purpose_mut(&mut self) -> &mut UpgradePurposeType;
fn upgrade_purpose_offset_static() -> usize;
// Provided method
fn upgrade_purpose_offset(&self) -> usize { ... }
}
Required Methods§
fn upgrade_purpose(&self) -> &UpgradePurposeType
fn upgrade_purpose_mut(&mut self) -> &mut UpgradePurposeType
fn upgrade_purpose_offset_static() -> usize
Provided Methods§
fn upgrade_purpose_offset(&self) -> usize
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.