Struct spirq::ty::PointerType
source · pub struct PointerType {
pub pointee_ty: Box<Type>,
pub store_cls: StorageClass,
}
Fields§
§pointee_ty: Box<Type>
§store_cls: StorageClass
Trait Implementations§
source§impl Clone for PointerType
impl Clone for PointerType
source§fn clone(&self) -> PointerType
fn clone(&self) -> PointerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PointerType
impl Debug for PointerType
source§impl Display for PointerType
impl Display for PointerType
source§impl Hash for PointerType
impl Hash for PointerType
source§impl PartialEq for PointerType
impl PartialEq for PointerType
source§fn eq(&self, other: &PointerType) -> bool
fn eq(&self, other: &PointerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SpirvType for PointerType
impl SpirvType for PointerType
source§fn min_nbyte(&self) -> Option<usize>
fn min_nbyte(&self) -> Option<usize>
Minimum size of the type in bytes if it can be represented in-memory.
It’s the size of all static members and plus one element if it’s an array.
Same as
wgpu::BindingType::Buffer::min_binding_size
.source§fn access_ty(&self) -> Option<AccessType>
fn access_ty(&self) -> Option<AccessType>
Returns how the type can be accessed:
ReadOnly
, WriteOnly
or
ReadWrite
.source§fn nbyte(&self) -> Option<usize>
fn nbyte(&self) -> Option<usize>
Size of the type in bytes if it can be represented in-memory.
impl Eq for PointerType
impl StructuralPartialEq for PointerType
Auto Trait Implementations§
impl Freeze for PointerType
impl RefUnwindSafe for PointerType
impl Send for PointerType
impl Sync for PointerType
impl Unpin for PointerType
impl UnwindSafe for PointerType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)