Trait runa_core::globals::MonoGlobal
source · pub trait MonoGlobal: Sized {
type Object;
const INTERFACE: &'static str;
const VERSION: u32;
const MAYBE_DEFAULT: Option<Self>;
// Required method
fn new_object() -> Self::Object;
}
Expand description
A monomorphic global
i.e. a global with a concrete type. This is analogous to the
MonoObject
trait for objects.
Required Associated Types§
Required Associated Constants§
sourceconst MAYBE_DEFAULT: Option<Self>
const MAYBE_DEFAULT: Option<Self>
A value that can be used to create an instance of Self
. Or None if
there is no compile time default value.
Required Methods§
sourcefn new_object() -> Self::Object
fn new_object() -> Self::Object
Create a new proxy object of this global.