[−][src]Struct ralik::types::BasicType
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]
base: T,
functions: Vec<(impl Into<Box<str>>, MemberFunction)>
) -> Self
pub fn insert_function(
&mut self,
key: impl Into<Box<str>>,
value: MemberFunction
) -> Option<MemberFunction>
[src]
&mut self,
key: impl Into<Box<str>>,
value: MemberFunction
) -> Option<MemberFunction>
impl BasicType<BoolImpl>
[src]
impl BasicType<CharImpl>
[src]
impl BasicType<EnumImpl>
[src]
pub fn new(
name: impl Into<Box<str>>,
variants: impl Iterator<Item = Variant>
) -> Self
[src]
name: impl Into<Box<str>>,
variants: impl Iterator<Item = Variant>
) -> Self
pub fn new_unit(name: impl Into<Box<str>>) -> Self
[src]
impl BasicType<IntegerImpl>
[src]
impl BasicType<OptionImpl>
[src]
pub fn new(name: impl Into<String>, element_type: TypeHandle) -> Self
[src]
impl BasicType<StringImpl>
[src]
impl BasicType<StructImpl>
[src]
pub fn new(
name: impl Into<Box<str>>,
fields: impl Iterator<Item = (impl Into<Box<str>>, TypeHandle)>
) -> Self
[src]
name: impl Into<Box<str>>,
fields: impl Iterator<Item = (impl Into<Box<str>>, TypeHandle)>
) -> Self
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]
name: impl Into<Box<str>>,
element_types: impl Into<Box<[TypeHandle]>>
) -> Self
pub fn new_unit(name: impl Into<Box<str>>) -> Self
[src]
impl BasicType<TupleStructImpl>
[src]
impl BasicType<UnitStructImpl>
[src]
Trait Implementations
impl<T: BasicTypeBase> Debug for BasicType<T>
[src]
impl<T: BasicTypeBase> Type for BasicType<T>
[src]
fn name(&self) -> &str
[src]
fn kind(&self) -> TypeKind
[src]
fn type_parameters(&self) -> &[TypeHandle]
[src]
fn fields(&self) -> (Option<&HashMap<Box<str>, usize>>, &[TypeHandle])
[src]
fn variants(&self) -> Option<(&HashMap<Box<str>, usize>, &[Variant])>
[src]
fn get_function(&self, key: &str) -> Option<&MemberFunction>
[src]
fn insert_function(
&mut self,
key: Box<str>,
value: MemberFunction
) -> Option<MemberFunction>
[src]
&mut self,
key: Box<str>,
value: MemberFunction
) -> Option<MemberFunction>
fn remove_function(&mut self, key: &str) -> Option<(Box<str>, MemberFunction)>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for BasicType<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for BasicType<T> where
T: Send,
T: Send,
impl<T> Sync for BasicType<T> where
T: Sync,
T: Sync,
impl<T> Unpin for BasicType<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for BasicType<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,