pub trait AlignableOpInterface: Op {
// Provided methods
fn alignment(&self, ctx: &Context) -> Option<u32>
where Self: Sized { ... }
fn set_alignment(&self, ctx: &Context, alignment: u32)
where Self: Sized { ... }
}Expand description
Ops that can have an alignment set.
Provided Methods§
Sourcefn alignment(&self, ctx: &Context) -> Option<u32>where
Self: Sized,
fn alignment(&self, ctx: &Context) -> Option<u32>where
Self: Sized,
Get the alignment of this [Op], if set.
Sourcefn set_alignment(&self, ctx: &Context, alignment: u32)where
Self: Sized,
fn set_alignment(&self, ctx: &Context, alignment: u32)where
Self: Sized,
Set the alignment of this [Op].
Trait Implementations§
impl OpInterfaceMarker for dyn AlignableOpInterface
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".