[][src]Struct gf::mc::pipeline::Pipeline

pub struct Pipeline<'a, F, D, E> where
    F: FetchUnit<'a>,
    D: DecodeUnit<'a>,
    E: ExecuteUnit<'a>, 
{ /* fields omitted */ }

Model pipeline.

Implementations

impl<'a, F, D, E> Pipeline<'a, F, D, E> where
    F: FetchUnit<'a>,
    D: DecodeUnit<'a>,
    E: ExecuteUnit<'a>, 
[src]

pub fn new(fetch_unit: F, decode_unit: D, execute_unit: E) -> Self[src]

Create a pipeline from its three units.

Errors

  • Panics if the units have different parent modules.

pub fn module(&self) -> &'a Module[src]

Return the parent Pivot module.

pub fn fetch_unit(&self) -> &F[src]

Return a shared reference to the fetch unit.

pub fn fetch_unit_mut(&mut self) -> &mut F[src]

Return a mutable reference to the fetch unit.

pub fn decode_unit(&self) -> &D[src]

Return a shared reference to the decode unit.

pub fn decode_unit_mut(&mut self) -> &mut D[src]

Return a mutable reference to the decode unit.

pub fn execute_unit(&self) -> &E[src]

Return a shared reference to the execute unit.

pub fn execute_unit_mut(&mut self) -> &mut E[src]

Return a mutable reference to the execute unit.

Auto Trait Implementations

impl<'a, F, D, E> RefUnwindSafe for Pipeline<'a, F, D, E> where
    D: RefUnwindSafe,
    E: RefUnwindSafe,
    F: RefUnwindSafe

impl<'a, F, D, E> Send for Pipeline<'a, F, D, E> where
    D: Send,
    E: Send,
    F: Send

impl<'a, F, D, E> Sync for Pipeline<'a, F, D, E> where
    D: Sync,
    E: Sync,
    F: Sync

impl<'a, F, D, E> Unpin for Pipeline<'a, F, D, E> where
    D: Unpin,
    E: Unpin,
    F: Unpin

impl<'a, F, D, E> UnwindSafe for Pipeline<'a, F, D, E> where
    D: UnwindSafe,
    E: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.