pub enum RefKind {
Type,
Interface,
Exception,
Const,
Enumerator,
AnnotationDef,
}Expand description
What a reference is allowed to point at.
Variants§
Type
A type.
Interface
An interface.
Exception
An exception.
Const
A constant.
Enumerator
An enumerator.
Distinct from RefKind::Const: an enumerator is admitted
wherever a <const_expr> is — OMG IDL 4.2 §7.4.1.4.2 — but it is
not a constant node and does not live in the constants arena.
AnnotationDef
An annotation declaration.
Implementations§
Trait Implementations§
impl Copy for RefKind
impl Eq for RefKind
impl StructuralPartialEq for RefKind
Auto Trait Implementations§
impl Freeze for RefKind
impl RefUnwindSafe for RefKind
impl Send for RefKind
impl Sync for RefKind
impl Unpin for RefKind
impl UnsafeUnpin for RefKind
impl UnwindSafe for RefKind
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