pub enum TypeArg {
Type(TypeExpr),
Expr(Expr),
Shape(Vec<ShapeDim>),
}Expand description
A type argument in a generic instantiation.
Generic parameters can accept types, expressions (for const generics), or shape dimensions (for tensor shapes).
Variants§
Type(TypeExpr)
A type argument: Tensor<f64>.
Expr(Expr)
An expression argument (const generic): Matrix<3>.
Shape(Vec<ShapeDim>)
A shape argument: Tensor<[M, N]>.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeArg
impl RefUnwindSafe for TypeArg
impl Send for TypeArg
impl Sync for TypeArg
impl Unpin for TypeArg
impl UnsafeUnpin for TypeArg
impl UnwindSafe for TypeArg
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