Trait MergeOp

Source
pub trait MergeOp: Clone + Sized {
    // Required methods
    fn skip(&mut self, amt: u32);
    fn trunc(&mut self, amt: u32);
}

Required Methods§

Source

fn skip(&mut self, amt: u32)

Shorten the ‘front’ of the instruction

Source

fn trunc(&mut self, amt: u32)

Truncate off the ‘back’ of the instruction

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.

Implementations on Foreign Types§

Source§

impl MergeOp for Copy

Source§

fn skip(&mut self, amt: u32)

Source§

fn trunc(&mut self, amt: u32)

Source§

impl MergeOp for Run

Source§

fn skip(&mut self, amt: u32)

Source§

fn trunc(&mut self, amt: u32)

Source§

impl MergeOp for Add

Source§

fn skip(&mut self, amt: u32)

Source§

fn trunc(&mut self, amt: u32)

Source§

impl MergeOp for Op

Source§

fn skip(&mut self, amt: u32)

Source§

fn trunc(&mut self, amt: u32)

Implementors§