[][src]Enum piske::ptype::PType

pub enum PType {
    String,
    Float,
    Int,
    Boolean,
    Complex,
    Set,
    Void,
}

The types available in the piske programming language. Implements the sindra Type trait.

Variants

String

Built-in string type

Float

Floating-point numbers

Int

Integers (signed)

Boolean

Boolean (true / false)

Complex

Complex

Set

Set (collection)

Void

Empty type

Trait Implementations

impl PartialEq<PType> for PType[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Copy for PType[src]

impl Clone for PType[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> From<&'a str> for PType[src]

impl<'a> From<&'a Value> for PType[src]

impl Debug for PType[src]

impl Display for PType[src]

impl Hash for PType[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Type for PType[src]

impl Typed<PType> for Annotation[src]

impl Coerce<PType> for Value[src]

impl Coerce<PType> for PType[src]

impl Cast<PType> for Value[src]

impl Cast<PType> for PType[src]

impl InferPromotion for PType[src]

impl BinaryOperator<PType, Value> for InfixOp[src]

impl UnaryOperator<PType, Value> for PrefixOp[src]

impl UnaryOperator<PType, Value> for PostfixOp[src]

Auto Trait Implementations

impl Send for PType

impl Sync for PType

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.