pub enum StaticFunction {
Closure(StaticClosure),
Callback(StaticCallback),
}Variants§
Closure(StaticClosure)
Callback(StaticCallback)
Trait Implementations§
Source§impl Clone for StaticFunction
impl Clone for StaticFunction
Source§fn clone(&self) -> StaticFunction
fn clone(&self) -> StaticFunction
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 StaticFunction
impl Debug for StaticFunction
Source§impl<'gc> Fetchable<'gc> for StaticFunction
impl<'gc> Fetchable<'gc> for StaticFunction
Source§impl From<StaticCallback> for StaticFunction
impl From<StaticCallback> for StaticFunction
Source§fn from(callback: StaticCallback) -> Self
fn from(callback: StaticCallback) -> Self
Converts to this type from the input type.
Source§impl From<StaticClosure> for StaticFunction
impl From<StaticClosure> for StaticFunction
Source§fn from(closure: StaticClosure) -> Self
fn from(closure: StaticClosure) -> Self
Converts to this type from the input type.
Source§impl From<StaticFunction> for StaticValue
impl From<StaticFunction> for StaticValue
Source§fn from(v: StaticFunction) -> StaticValue
fn from(v: StaticFunction) -> StaticValue
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticFunction
impl !RefUnwindSafe for StaticFunction
impl !Send for StaticFunction
impl !Sync for StaticFunction
impl Unpin for StaticFunction
impl !UnwindSafe for StaticFunction
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