pub enum TypeValue {
Show 26 variants
String,
U8,
U16,
U32,
U64,
U128,
Usize,
I8,
I16,
I32,
I64,
I128,
Isize,
F32,
F64,
Bool,
HashMap(Box<TypeValue>, Box<TypeValue>),
Vec(Box<TypeValue>),
Result(Box<TypeValue>, Box<TypeValue>),
Struct(StructTypeValue),
Enum(EnumTypeValue),
Closure(ClosureTypeValue),
Function(FunctionTypeValue),
Option(Box<TypeValue>),
Tuple(Vec<TypeValue>),
RecursiveRef(Location),
}
Variants§
String
U8
U16
U32
U64
U128
Usize
I8
I16
I32
I64
I128
Isize
F32
F64
Bool
HashMap(Box<TypeValue>, Box<TypeValue>)
Vec(Box<TypeValue>)
Result(Box<TypeValue>, Box<TypeValue>)
Struct(StructTypeValue)
Enum(EnumTypeValue)
Closure(ClosureTypeValue)
Function(FunctionTypeValue)
Option(Box<TypeValue>)
Tuple(Vec<TypeValue>)
RecursiveRef(Location)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeValue
impl RefUnwindSafe for TypeValue
impl Send for TypeValue
impl Sync for TypeValue
impl Unpin for TypeValue
impl UnwindSafe for TypeValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.