Skip to main content

ChapelType

Enum ChapelType 

Source
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(Box<ChapelType>)

Shared: shared C

§

Unmanaged(Box<ChapelType>)

Unmanaged: unmanaged C

Trait Implementations§

Source§

impl Clone for ChapelType

Source§

fn clone(&self) -> ChapelType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChapelType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ChapelType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ChapelType

Source§

fn eq(&self, other: &ChapelType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ChapelType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.