Enum spirq::ty::AccessType
source · #[repr(u32)]pub enum AccessType {
ReadOnly = 1,
WriteOnly = 2,
ReadWrite = 3,
}
Expand description
Access type of a variable.
Variants§
ReadOnly = 1
The variable can be accessed by read.
WriteOnly = 2
The variable can be accessed by write.
ReadWrite = 3
The variable can be accessed by read or by write.
Trait Implementations§
source§impl BitAnd for AccessType
impl BitAnd for AccessType
§type Output = Option<AccessType>
type Output = Option<AccessType>
The resulting type after applying the
&
operator.source§fn bitand(self, rhs: AccessType) -> Option<AccessType>
fn bitand(self, rhs: AccessType) -> Option<AccessType>
Performs the
&
operation. Read moresource§impl BitOr for AccessType
impl BitOr for AccessType
§type Output = AccessType
type Output = AccessType
The resulting type after applying the
|
operator.source§fn bitor(self, rhs: AccessType) -> AccessType
fn bitor(self, rhs: AccessType) -> AccessType
Performs the
|
operation. Read moresource§impl Clone for AccessType
impl Clone for AccessType
source§fn clone(&self) -> AccessType
fn clone(&self) -> AccessType
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 AccessType
impl Debug for AccessType
source§impl Hash for AccessType
impl Hash for AccessType
source§impl PartialEq for AccessType
impl PartialEq for AccessType
source§fn eq(&self, other: &AccessType) -> bool
fn eq(&self, other: &AccessType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AccessType
impl Eq for AccessType
impl StructuralPartialEq for AccessType
Auto Trait Implementations§
impl Freeze for AccessType
impl RefUnwindSafe for AccessType
impl Send for AccessType
impl Sync for AccessType
impl Unpin for AccessType
impl UnwindSafe for AccessType
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