pub trait IntoShiftAmount: Sized {
// Required method
fn into_shift_amount(self) -> Option<ShiftAmount<Self>>;
}
Expand description
Integer ypes that can be used as shift amount in shift or rotate instructions.
Required Methods§
Sourcefn into_shift_amount(self) -> Option<ShiftAmount<Self>>
fn into_shift_amount(self) -> Option<ShiftAmount<Self>>
Converts self
into a ShiftAmount
if possible.
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.