Trait IntoOffset

Source
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§

Source

type Item: AnyBitPattern + Copy

Into an offset of what type?

Required Methods§

Source

fn into_offset(self) -> Result<Offset<Self::Item>, Error>

Turns self into an Offset.

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.

Implementors§