Skip to main content

AlignableOpInterface

Trait AlignableOpInterface 

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

Source

fn alignment(&self, ctx: &Context) -> Option<u32>
where Self: Sized,

Get the alignment of this Op, if set.

Source

fn set_alignment(&self, ctx: &Context, alignment: u32)
where Self: Sized,

Set the alignment of this Op.

Trait Implementations§

Implementors§