#[repr(C)]pub enum StorageClass {
None = 1,
Auto = 6,
Register = 7,
Static = 3,
Extern = 2,
PrivateExtern = 4,
OpenClWorkGroupLocal = 5,
}Expand description
Indicates the storage class of a declaration.
Variants§
None = 1
The declaration does not specifiy a storage duration and therefore has an automatic storage duration.
Auto = 6
The declaration specifies an automatic storage duration.
Register = 7
The declaration specifies an automatic storage duration and that it should be stored in a CPU register
Static = 3
The declaration specifies a static storage duration and internal linkage.
Extern = 2
The declaration specifies a static storage duration and external linkage.
PrivateExtern = 4
The declaration specifies a static storage duration and external linkage but is not accessible outside the containing translation unit.
OpenClWorkGroupLocal = 5
The declaration specifies a storage duration related to an OpenCL work group.
Trait Implementations§
Source§impl Clone for StorageClass
impl Clone for StorageClass
Source§fn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
Returns a duplicate 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 StorageClass
impl Debug for StorageClass
Source§impl Hash for StorageClass
impl Hash for StorageClass
Source§impl PartialEq for StorageClass
impl PartialEq for StorageClass
impl Copy for StorageClass
impl Eq for StorageClass
impl StructuralPartialEq for StorageClass
Auto Trait Implementations§
impl Freeze for StorageClass
impl RefUnwindSafe for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Unpin for StorageClass
impl UnwindSafe for StorageClass
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