pub enum TypeModifierKind {
Pointer,
Reference,
Const,
Packed,
Volatile,
Restrict,
Shared,
RvalueReference,
Atomic,
Other,
}
Expand description
The kind of a type modifier.
Variants§
Pointer
The resulting type is a pointer to the type being modified.
Reference
The resulting type is a reference to the type being modified.
Const
The resulting type is a constant.
Packed
The resulting type is packed.
Volatile
The resulting type is volatile.
Restrict
The resulting type has restricted aliasing.
The resulting type is shared (for example, in UPC).
RvalueReference
The resulting type is a rvalue reference to the type being modified.
Atomic
The resulting type is atomic.
Other
Any other type modifier.
Trait Implementations§
Source§impl Clone for TypeModifierKind
impl Clone for TypeModifierKind
Source§fn clone(&self) -> TypeModifierKind
fn clone(&self) -> TypeModifierKind
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 TypeModifierKind
impl Debug for TypeModifierKind
Source§impl PartialEq for TypeModifierKind
impl PartialEq for TypeModifierKind
impl Copy for TypeModifierKind
impl Eq for TypeModifierKind
impl StructuralPartialEq for TypeModifierKind
Auto Trait Implementations§
impl Freeze for TypeModifierKind
impl RefUnwindSafe for TypeModifierKind
impl Send for TypeModifierKind
impl Sync for TypeModifierKind
impl Unpin for TypeModifierKind
impl UnwindSafe for TypeModifierKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.