[][src]Struct dynamic_ocl::buffer::BufferFlagsInfo

#[repr(transparent)]
pub struct BufferFlagsInfo(_);

Flags used to construct a buffer.

These values cannot be used when constructing a buffer using the safe API (since traits and type parameters are used instead, to provide compile-time safety) but they're provided anyways as the output of the CL_MEM_FLAGS info function.

Methods

impl BufferFlagsInfo[src]

pub const READ_WRITE: BufferFlagsInfo[src]

pub const WRITE_ONLY: BufferFlagsInfo[src]

pub const READ_ONLY: BufferFlagsInfo[src]

pub const USE_HOST_PTR: BufferFlagsInfo[src]

pub const ALLOC_HOST_PTR: BufferFlagsInfo[src]

pub const COPY_HOST_PTR: BufferFlagsInfo[src]

pub const HOST_WRITE_ONLY: BufferFlagsInfo[src]

pub const HOST_READ_ONLY: BufferFlagsInfo[src]

pub const HOST_NO_ACCESS: BufferFlagsInfo[src]

pub const unsafe fn new(value: cl_mem_flags) -> Self[src]

Create a new wrapped bitfield from the given raw bitfield value.

Safety

This function can be used to create bitfields representing non-existent flags. You must ensure that the resulting bitfield is legal anywhere it's used.

pub const fn raw(self) -> cl_mem_flags[src]

Unwrap this bitfield into the underlying value

pub const fn contains(self, other: Self) -> bool[src]

Check whether this bitfield is equal to or a superset of a given bitfield

Trait Implementations

impl BitAnd<BufferFlagsInfo> for BufferFlagsInfo[src]

type Output = Self

The resulting type after applying the & operator.

impl BitAndAssign<BufferFlagsInfo> for BufferFlagsInfo[src]

impl BitOr<BufferFlagsInfo> for BufferFlagsInfo[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<BufferFlagsInfo> for BufferFlagsInfo[src]

impl BitXor<BufferFlagsInfo> for BufferFlagsInfo[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitXorAssign<BufferFlagsInfo> for BufferFlagsInfo[src]

impl Clone for BufferFlagsInfo[src]

impl Copy for BufferFlagsInfo[src]

impl Debug for BufferFlagsInfo[src]

impl Eq for BufferFlagsInfo[src]

impl FromOclInfo for BufferFlagsInfo[src]

impl Hash for BufferFlagsInfo[src]

impl PartialEq<BufferFlagsInfo> for BufferFlagsInfo[src]

impl StructuralEq for BufferFlagsInfo[src]

impl StructuralPartialEq for BufferFlagsInfo[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> Same<T> for T

type Output = T

Should always be Self

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.