[][src]Struct opencl_core::program::Program

pub struct Program { /* fields omitted */ }

Methods

impl Program[src]

pub fn create_with_source(
    context: &Context,
    src: &str
) -> Output<UnbuiltProgram>
[src]

pub fn create_with_binary(
    context: &Context,
    device: &Device,
    binary: &[u8]
) -> Output<UnbuiltProgram>
[src]

pub unsafe fn new(
    object: ClProgram,
    context: Context,
    devices: Vec<Device>
) -> Program
[src]

pub unsafe fn from_low_level_program(program: &ClProgram) -> Output<Program>[src]

pub fn devices(&self) -> &[Device][src]

pub fn context(&self) -> &Context[src]

pub fn low_level_program(&self) -> &ClProgram[src]

Trait Implementations

impl Clone for Program[src]

impl Debug for Program[src]

impl Drop for Program[src]

impl Eq for Program[src]

impl PartialEq<Program> for Program[src]

impl ProgramPtr for Program[src]

impl<'_> ProgramPtr for &'_ Program[src]

impl<'_> ProgramPtr for &'_ mut Program[src]

impl Send for Program[src]

impl Sync for Program[src]

Auto Trait Implementations

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> 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.