pub enum FutharkType {
Show 18 variants
I8,
I16,
I32,
I64,
U8,
U16,
U32,
U64,
F16,
F32,
F64,
Bool,
Array(Box<FutharkType>, Vec<Option<String>>),
Tuple(Vec<FutharkType>),
Record(Vec<(String, FutharkType)>),
Opaque(String),
Named(String),
Parametric(String, Vec<String>),
}Expand description
Futhark type representation.
Variants§
I8
i8
I16
i16
I32
i32
I64
i64
U8
u8
U16
u16
U32
u32
U64
u64
F16
f16
F32
f32
F64
f64
Bool
bool
Array(Box<FutharkType>, Vec<Option<String>>)
Multi-dimensional array: [n][m]...t
Tuple(Vec<FutharkType>)
Tuple: (t1, t2, ...)
Record(Vec<(String, FutharkType)>)
Record: {field: type, ...}
Opaque(String)
Opaque type (abstract/named): #[opaque] type Foo
Named(String)
Named (user-defined) type alias
Parametric(String, Vec<String>)
Parametric type: name 't
Trait Implementations§
Source§impl Clone for FutharkType
impl Clone for FutharkType
Source§fn clone(&self) -> FutharkType
fn clone(&self) -> FutharkType
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 FutharkType
impl Debug for FutharkType
Source§impl Display for FutharkType
impl Display for FutharkType
Source§impl PartialEq for FutharkType
impl PartialEq for FutharkType
impl StructuralPartialEq for FutharkType
Auto Trait Implementations§
impl Freeze for FutharkType
impl RefUnwindSafe for FutharkType
impl Send for FutharkType
impl Sync for FutharkType
impl Unpin for FutharkType
impl UnsafeUnpin for FutharkType
impl UnwindSafe for FutharkType
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