Enum clang::StorageClass
source · [−]#[repr(C)]
pub enum StorageClass {
None,
Auto,
Register,
Static,
Extern,
PrivateExtern,
OpenClWorkGroupLocal,
}
Expand description
Indicates the storage class of a declaration.
Variants
None
The declaration does not specifiy a storage duration and therefore has an automatic storage duration.
Auto
The declaration specifies an automatic storage duration.
Register
The declaration specifies an automatic storage duration and that it should be stored in a CPU register
Static
The declaration specifies a static storage duration and internal linkage.
Extern
The declaration specifies a static storage duration and external linkage.
PrivateExtern
The declaration specifies a static storage duration and external linkage but is not accessible outside the containing translation unit.
OpenClWorkGroupLocal
The declaration specifies a storage duration related to an OpenCL work group.
Trait Implementations
sourceimpl Clone for StorageClass
impl Clone for StorageClass
sourcefn clone(&self) -> StorageClass
fn clone(&self) -> StorageClass
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StorageClass
impl Debug for StorageClass
sourceimpl Hash for StorageClass
impl Hash for StorageClass
sourceimpl PartialEq<StorageClass> for StorageClass
impl PartialEq<StorageClass> for StorageClass
impl Copy for StorageClass
impl Eq for StorageClass
impl StructuralEq for StorageClass
impl StructuralPartialEq for StorageClass
Auto Trait Implementations
impl RefUnwindSafe for StorageClass
impl Send for StorageClass
impl Sync for StorageClass
impl Unpin for StorageClass
impl UnwindSafe for StorageClass
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more