[][src]Struct tealr::TealType

pub struct TealType { /* fields omitted */ }

Represents a type

Implementations

impl TealType[src]

pub fn from<A: TypeRepresentation>() -> Self[src]

generates a TealType based on a type implementing TealData.

let nummeric_i8 = TealType::from::<i8>();
let nummeric_float = TealType::from::<f32>();
 //both i8 and f32 become a "number" in lua/teal. As such, their TealTypes are equal.
assert_eq!(nummeric_i8,nummeric_float)

Trait Implementations

impl Clone for TealType[src]

impl Debug for TealType[src]

impl Eq for TealType[src]

impl PartialEq<TealType> for TealType[src]

impl StructuralEq for TealType[src]

impl StructuralPartialEq for TealType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.