pub trait IntoOffset: AnyBitPattern + Copy {
type Item: AnyBitPattern + Copy;
// Required method
fn into_offset(self) -> Result<Offset<Self::Item>, Error>;
}
Expand description
This is basically equivalent to TryInto<Offset<T>, Error=Error>
, but having this
alias makes type inference work better.
Required Associated Types§
Sourcetype Item: AnyBitPattern + Copy
type Item: AnyBitPattern + Copy
Into an offset of what type?
Required Methods§
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.