pub enum TypeExprKind {
InstanceOf,
TreatAs,
CastAs,
CastableAs,
}Expand description
Kind of type expression.
Variants§
InstanceOf
expr instance of type
TreatAs
expr treat as type
CastAs
expr cast as type
CastableAs
expr castable as type
Trait Implementations§
Source§impl Clone for TypeExprKind
impl Clone for TypeExprKind
Source§fn clone(&self) -> TypeExprKind
fn clone(&self) -> TypeExprKind
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 TypeExprKind
Source§impl Debug for TypeExprKind
impl Debug for TypeExprKind
impl Eq for TypeExprKind
Source§impl PartialEq for TypeExprKind
impl PartialEq for TypeExprKind
Source§fn eq(&self, other: &TypeExprKind) -> bool
fn eq(&self, other: &TypeExprKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeExprKind
Auto Trait Implementations§
impl Freeze for TypeExprKind
impl RefUnwindSafe for TypeExprKind
impl Send for TypeExprKind
impl Sync for TypeExprKind
impl Unpin for TypeExprKind
impl UnsafeUnpin for TypeExprKind
impl UnwindSafe for TypeExprKind
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