#[non_exhaustive]pub struct MemFlags {
pub access: MemAccess,
pub host_access: MemAccess,
pub host: HostPtr,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access: MemAccess§host_access: MemAccessAvailable on crate feature
§cl1_2 only.host: HostPtrImplementations§
source§impl MemFlags
impl MemFlags
pub const fn new(access: MemAccess, host: HostPtr) -> Self
pub const fn with_host_access( access: MemAccess, host_access: MemAccess, host: HostPtr ) -> Self
Available on crate feature
cl1_2 only.pub const fn from_bits(bits: cl_mem_flags) -> Self
pub const fn to_bits(self) -> cl_mem_flags
Trait Implementations§
source§impl From<u64> for MemFlags
impl From<u64> for MemFlags
source§fn from(bits: cl_mem_flags) -> Self
fn from(bits: cl_mem_flags) -> Self
Converts to this type from the input type.
source§impl Into<u64> for MemFlags
impl Into<u64> for MemFlags
source§fn into(self) -> cl_mem_flags
fn into(self) -> cl_mem_flags
Converts this type into the (usually inferred) input type.
source§impl PartialEq<MemFlags> for MemFlags
impl PartialEq<MemFlags> for MemFlags
impl Copy for MemFlags
impl Eq for MemFlags
impl StructuralEq for MemFlags
impl StructuralPartialEq for MemFlags
Auto Trait Implementations§
impl RefUnwindSafe for MemFlags
impl Send for MemFlags
impl Sync for MemFlags
impl Unpin for MemFlags
impl UnwindSafe for MemFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more