pub enum StorageClass {
Typedef,
Extern,
Static,
Auto,
Register,
Constexpr,
}Expand description
A storage class specifier.
Variants§
Typedef
typedef, which the grammar treats as a storage class and which declares no object.
Extern
extern.
Static
static.
Auto
auto, the old one that means nothing, not the C23 type specifier.
Register
register.
Constexpr
constexpr, new in C23.
Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StorageClass
Source§impl Debug for StorageClass
impl Debug for StorageClass
impl Eq for StorageClass
Source§impl PartialEq for StorageClass
impl PartialEq 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 UnsafeUnpin 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