[−][src]Struct dynamic_ocl::buffer::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.
fn bitand(self, rhs: Self) -> Self
[src]
impl BitAndAssign<BufferFlagsInfo> for BufferFlagsInfo
[src]
fn bitand_assign(&mut self, rhs: Self)
[src]
impl BitOr<BufferFlagsInfo> for BufferFlagsInfo
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
impl BitOrAssign<BufferFlagsInfo> for BufferFlagsInfo
[src]
fn bitor_assign(&mut self, rhs: Self)
[src]
impl BitXor<BufferFlagsInfo> for BufferFlagsInfo
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
impl BitXorAssign<BufferFlagsInfo> for BufferFlagsInfo
[src]
fn bitxor_assign(&mut self, rhs: Self)
[src]
impl Clone for BufferFlagsInfo
[src]
fn clone(&self) -> BufferFlagsInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<BufferFlagsInfo> for BufferFlagsInfo
[src]
fn eq(&self, other: &BufferFlagsInfo) -> bool
[src]
fn ne(&self, other: &BufferFlagsInfo) -> bool
[src]
impl StructuralEq for BufferFlagsInfo
[src]
impl StructuralPartialEq for BufferFlagsInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for BufferFlagsInfo
impl Send for BufferFlagsInfo
impl Sync for BufferFlagsInfo
impl Unpin for BufferFlagsInfo
impl UnwindSafe for BufferFlagsInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,