[][src]Struct dynamic_ocl::program::ProgramBuilder

#[must_use]
pub struct ProgramBuilder<'a, T: ProgramBuilderType> { /* fields omitted */ }

A partially built OpenCL program

Methods

impl<'a> ProgramBuilder<'a, FromSource<'a>>[src]

pub fn with_source(ctx: &'a Context, src: &'a impl AsRef<[u8]>) -> Self[src]

Begin building a program with a single source file

impl<'a, T: ProgramBuilderType> ProgramBuilder<'a, T>[src]

pub fn opt(&mut self, opts: impl Into<Cow<'a, str>>) -> &mut Self[src]

Append an option to be passed to the compiler

pub fn build(&self) -> Result<Program>[src]

Build the program

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for ProgramBuilder<'a, T> where
    T: RefUnwindSafe

impl<'a, T> !Send for ProgramBuilder<'a, T>

impl<'a, T> !Sync for ProgramBuilder<'a, T>

impl<'a, T> Unpin for ProgramBuilder<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for ProgramBuilder<'a, T> where
    T: 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> Same<T> for T

type Output = T

Should always be Self

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.