[][src]Struct ralik::types::BasicType

pub struct BasicType<T: BasicTypeBase> { /* fields omitted */ }

Implementations

impl BasicType<ArrayImpl>[src]

pub fn new(name: impl Into<String>, element_type: TypeHandle) -> Self[src]

impl<T: BasicTypeBase> BasicType<T>[src]

pub fn from_base(base: T) -> Self[src]

pub fn from_base_with_functions(
    base: T,
    functions: Vec<(impl Into<Box<str>>, MemberFunction)>
) -> Self
[src]

pub fn insert_function(
    &mut self,
    key: impl Into<Box<str>>,
    value: MemberFunction
) -> Option<MemberFunction>
[src]

impl BasicType<BoolImpl>[src]

pub fn new() -> Self[src]

impl BasicType<CharImpl>[src]

pub fn new() -> Self[src]

impl BasicType<EnumImpl>[src]

pub fn new(
    name: impl Into<Box<str>>,
    variants: impl Iterator<Item = Variant>
) -> Self
[src]

pub fn new_unit(name: impl Into<Box<str>>) -> Self[src]

impl BasicType<IntegerImpl>[src]

pub fn new() -> Self[src]

impl BasicType<OptionImpl>[src]

pub fn new(name: impl Into<String>, element_type: TypeHandle) -> Self[src]

impl BasicType<StringImpl>[src]

pub fn new() -> Self[src]

impl BasicType<StructImpl>[src]

pub fn new(
    name: impl Into<Box<str>>,
    fields: impl Iterator<Item = (impl Into<Box<str>>, TypeHandle)>
) -> Self
[src]

pub fn new_empty(name: impl Into<Box<str>>) -> Self[src]

impl BasicType<TupleImpl>[src]

pub fn new(
    name: impl Into<Box<str>>,
    element_types: impl Into<Box<[TypeHandle]>>
) -> Self
[src]

pub fn new_unit(name: impl Into<Box<str>>) -> Self[src]

impl BasicType<TupleStructImpl>[src]

pub fn new(
    name: impl Into<Box<str>>,
    element_types: impl Into<Vec<TypeHandle>>
) -> Self
[src]

impl BasicType<UnitStructImpl>[src]

pub fn new(name: impl Into<Box<str>>) -> Self[src]

Trait Implementations

impl<T: BasicTypeBase> Debug for BasicType<T>[src]

impl<T: BasicTypeBase> Type for BasicType<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for BasicType<T> where
    T: RefUnwindSafe

impl<T> Send for BasicType<T> where
    T: Send

impl<T> Sync for BasicType<T> where
    T: Sync

impl<T> Unpin for BasicType<T> where
    T: Unpin

impl<T> UnwindSafe for BasicType<T> where
    T: UnwindSafe

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, 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.