pub enum IntrinsicKind {
Expr,
Type,
TypeInterface,
}Expand description
Whether an intrinsic takes an expression argument list (the common case)
or a type argument (@size_of(T), @type_info(T), etc.).
Variants§
Expr
Normal expression intrinsic: @name(expr, ...).
Type
Type intrinsic: @name(Type) where the argument is a type expression.
TypeInterface
Type-and-interface intrinsic: @name(Type, Interface) where the
first argument is a type expression and the second names an
interface (e.g. @implements(T, Drop)).
Trait Implementations§
Source§impl Clone for IntrinsicKind
impl Clone for IntrinsicKind
Source§fn clone(&self) -> IntrinsicKind
fn clone(&self) -> IntrinsicKind
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 IntrinsicKind
impl Debug for IntrinsicKind
Source§impl PartialEq for IntrinsicKind
impl PartialEq for IntrinsicKind
impl Copy for IntrinsicKind
impl Eq for IntrinsicKind
impl StructuralPartialEq for IntrinsicKind
Auto Trait Implementations§
impl Freeze for IntrinsicKind
impl RefUnwindSafe for IntrinsicKind
impl Send for IntrinsicKind
impl Sync for IntrinsicKind
impl Unpin for IntrinsicKind
impl UnsafeUnpin for IntrinsicKind
impl UnwindSafe for IntrinsicKind
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