pub enum TyExprKind {
Array {
elem_ty_expr: Box<TyExpr>,
len: u32,
},
Struct(StructPtr),
Enum(LiveType),
DrawShader(DrawShaderPtr),
Lit {
ty_lit: TyLit,
},
ClosureDecl {
return_ty: RefCell<Option<Ty>>,
return_ty_expr: Box<Option<TyExpr>>,
params: Vec<Param>,
},
}
Variants
Array
Struct(StructPtr)
Enum(LiveType)
DrawShader(DrawShaderPtr)
Lit
Fields
ty_lit: TyLit
ClosureDecl
Trait Implementations
sourceimpl Clone for TyExprKind
impl Clone for TyExprKind
sourcefn clone(&self) -> TyExprKind
fn clone(&self) -> TyExprKind
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for TyExprKind
impl !Send for TyExprKind
impl !Sync for TyExprKind
impl Unpin for TyExprKind
impl UnwindSafe for TyExprKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more