[][src]Struct raptor::ir::Program

pub struct Program<V: Value> { /* fields omitted */ }

Methods

impl<V: Value> Program<V>[src]

pub fn from_il(program: &Program) -> Result<Program<Constant>>[src]

pub fn function(&self, index: usize) -> Option<&Function<V>>[src]

pub fn functions(&self) -> Vec<&Function<V>>[src]

pub fn function_by_name(&self, name: &str) -> Option<&Function<V>>[src]

pub fn replace_function(&mut self, index: usize, function: Function<V>)[src]

Trait Implementations

impl<V: Clone + Value> Clone for Program<V>[src]

impl<V: Debug + Value> Debug for Program<V>[src]

impl<'de, V: Value> Deserialize<'de> for Program<V> where
    V: Deserialize<'de>, 
[src]

impl<V: Value> Serialize for Program<V> where
    V: Serialize
[src]

Auto Trait Implementations

impl<V> !RefUnwindSafe for Program<V>

impl<V> !Send for Program<V>

impl<V> !Sync for Program<V>

impl<V> Unpin for Program<V>

impl<V> !UnwindSafe for Program<V>

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.