pub struct Unit;Expand description
The rust type corresponding to rune’s None type.
Trait Implementations§
Source§impl FromValue for Unit
impl FromValue for Unit
Source§fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, StackError>
fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, StackError>
Try to convert to the given type, from the given value.
Source§impl ReflectValueType for Unit
impl ReflectValueType for Unit
Source§fn value_type() -> ValueType
fn value_type() -> ValueType
Convert into a value type.
Source§fn value_type_info() -> ValueTypeInfo
fn value_type_info() -> ValueTypeInfo
Access diagnostical information on the value type.
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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> UnsafeFromValue for Twhere
T: FromValue,
impl<T> UnsafeFromValue for Twhere
T: FromValue,
Source§unsafe fn unsafe_from_value(
value: ValuePtr,
vm: &mut Vm,
) -> Result<(T, <T as UnsafeFromValue>::Guard), StackError>
unsafe fn unsafe_from_value( value: ValuePtr, vm: &mut Vm, ) -> Result<(T, <T as UnsafeFromValue>::Guard), StackError>
Convert the given reference using unsafe assumptions to a value. Read more
Source§impl<T> UnsafeToValue for Twhere
T: ToValue,
impl<T> UnsafeToValue for Twhere
T: ToValue,
Source§unsafe fn unsafe_to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>
unsafe fn unsafe_to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>
Convert into a value.