pub enum ChapelType {
Show 26 variants
Int(Option<u32>),
UInt(Option<u32>),
Real(Option<u32>),
Imag(Option<u32>),
Complex(Option<u32>),
Bool,
String,
Bytes,
Range(Box<ChapelType>),
Domain(u32, Box<ChapelType>),
Array(Box<ChapelType>, Box<ChapelType>),
Record(String),
Class(String),
Union(String),
EnumType(String),
ProcType(Vec<ChapelType>, Box<ChapelType>),
Tuple(Vec<ChapelType>),
Named(String),
Void,
TypeVar(String),
Atomic(Box<ChapelType>),
Sync(Box<ChapelType>),
Single(Box<ChapelType>),
Owned(Box<ChapelType>),
Shared(Box<ChapelType>),
Unmanaged(Box<ChapelType>),
}Expand description
Chapel type representation.
Variants§
Int(Option<u32>)
int(8) / int(16) / int(32) / int(64) (default int)
UInt(Option<u32>)
uint(8) / uint(16) / uint(32) / uint(64) (default uint)
Real(Option<u32>)
real(32) / real(64) (default real)
Imag(Option<u32>)
imag(32) / imag(64) (default imag)
Complex(Option<u32>)
complex(64) / complex(128) (default complex)
Bool
bool
String
string
Bytes
bytes
Range(Box<ChapelType>)
range(idxType) — e.g. 1..n
Domain(u32, Box<ChapelType>)
domain(rank, idxType) — multi-dimensional index set
Array(Box<ChapelType>, Box<ChapelType>)
[D] eltType — array over a domain
Record(String)
Record type: record R { ... }
Class(String)
Class type: class C { ... }
Union(String)
Union type: union U { ... }
EnumType(String)
Enum type: enum E { ... }
ProcType(Vec<ChapelType>, Box<ChapelType>)
Procedure/function type: proc(argTypes) : retType
Tuple(Vec<ChapelType>)
Tuple type: (t1, t2, ...)
Named(String)
Named / user-defined type
Void
void (no return)
TypeVar(String)
Type variable / generic
Atomic(Box<ChapelType>)
atomic T
Sync(Box<ChapelType>)
sync T
Single(Box<ChapelType>)
single T
Owned(Box<ChapelType>)
Pointer to owned object: owned C
Shared: shared C
Unmanaged(Box<ChapelType>)
Unmanaged: unmanaged C
Trait Implementations§
Source§impl Clone for ChapelType
impl Clone for ChapelType
Source§fn clone(&self) -> ChapelType
fn clone(&self) -> ChapelType
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 ChapelType
impl Debug for ChapelType
Source§impl Display for ChapelType
impl Display for ChapelType
Source§impl PartialEq for ChapelType
impl PartialEq for ChapelType
impl StructuralPartialEq for ChapelType
Auto Trait Implementations§
impl Freeze for ChapelType
impl RefUnwindSafe for ChapelType
impl Send for ChapelType
impl Sync for ChapelType
impl Unpin for ChapelType
impl UnsafeUnpin for ChapelType
impl UnwindSafe for ChapelType
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