pub trait RuntimeWorkspaceService {
// Required methods
fn lookup(&self, name: &str) -> Option<Value>;
fn snapshot(&self) -> Vec<(String, Value)>;
fn global_names(&self) -> Vec<String>;
fn assign(&self, name: &str, value: Value) -> Result<(), RuntimeError>;
fn clear(&self) -> Result<(), RuntimeError>;
fn remove(&self, name: &str) -> Result<(), RuntimeError>;
}Required Methods§
fn lookup(&self, name: &str) -> Option<Value>
fn snapshot(&self) -> Vec<(String, Value)>
fn global_names(&self) -> Vec<String>
fn assign(&self, name: &str, value: Value) -> Result<(), RuntimeError>
fn clear(&self) -> Result<(), RuntimeError>
fn remove(&self, name: &str) -> Result<(), RuntimeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".