pub enum StaticValue {
Nil,
Boolean(bool),
Integer(i64),
Number(f64),
String(StashedString),
Table(StashedTable),
Function(StashedFunction),
Thread(StashedThread),
UserData(StashedUserData),
}Variants§
Nil
Boolean(bool)
Integer(i64)
Number(f64)
String(StashedString)
Table(StashedTable)
Function(StashedFunction)
Thread(StashedThread)
UserData(StashedUserData)
Implementations§
Source§impl StaticValue
impl StaticValue
Trait Implementations§
Source§impl Clone for StaticValue
impl Clone for StaticValue
Source§fn clone(&self) -> StaticValue
fn clone(&self) -> StaticValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticValue
impl Debug for StaticValue
Source§impl<'gc> Fetchable<'gc> for StaticValue
impl<'gc> Fetchable<'gc> for StaticValue
Source§impl From<StashedCallback> for StaticValue
impl From<StashedCallback> for StaticValue
Source§fn from(v: StashedCallback) -> StaticValue
fn from(v: StashedCallback) -> StaticValue
Converts to this type from the input type.
Source§impl From<StashedClosure> for StaticValue
impl From<StashedClosure> for StaticValue
Source§fn from(v: StashedClosure) -> StaticValue
fn from(v: StashedClosure) -> StaticValue
Converts to this type from the input type.
Source§impl From<StashedFunction> for StaticValue
impl From<StashedFunction> for StaticValue
Source§fn from(v: StashedFunction) -> StaticValue
fn from(v: StashedFunction) -> StaticValue
Converts to this type from the input type.
Source§impl From<StashedString> for StaticValue
impl From<StashedString> for StaticValue
Source§fn from(v: StashedString) -> StaticValue
fn from(v: StashedString) -> StaticValue
Converts to this type from the input type.
Source§impl From<StashedTable> for StaticValue
impl From<StashedTable> for StaticValue
Source§fn from(v: StashedTable) -> StaticValue
fn from(v: StashedTable) -> StaticValue
Converts to this type from the input type.
Source§impl From<StashedUserData> for StaticValue
impl From<StashedUserData> for StaticValue
Source§fn from(v: StashedUserData) -> StaticValue
fn from(v: StashedUserData) -> StaticValue
Converts to this type from the input type.
Source§impl From<bool> for StaticValue
impl From<bool> for StaticValue
Source§fn from(v: bool) -> StaticValue
fn from(v: bool) -> StaticValue
Converts to this type from the input type.
Source§impl From<f64> for StaticValue
impl From<f64> for StaticValue
Source§fn from(v: f64) -> StaticValue
fn from(v: f64) -> StaticValue
Converts to this type from the input type.
Source§impl From<i64> for StaticValue
impl From<i64> for StaticValue
Source§fn from(v: i64) -> StaticValue
fn from(v: i64) -> StaticValue
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticValue
impl !RefUnwindSafe for StaticValue
impl !Send for StaticValue
impl !Sync for StaticValue
impl Unpin for StaticValue
impl !UnwindSafe for StaticValue
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