pub trait FromScanIndex: Sized {
// Required method
fn from_scan_index(index: u8) -> Option<Self>;
}
Expand description
Types that implement this trait can be associated with a scan index.
Required Methods§
Sourcefn from_scan_index(index: u8) -> Option<Self>
fn from_scan_index(index: u8) -> Option<Self>
Return the instance of this type for the given scan index.
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.