pub trait EntryFactory {
// Required methods
fn create(name: &str, id: String, order: u32) -> WorldInfoEntry;
fn set_text(&mut self, text: &str) -> &mut WorldInfoEntry;
fn set_conditions(&mut self, conditions: Vec<String>) -> &mut WorldInfoEntry;
fn parse<P: PluginBridge>(
&mut self,
) -> Result<&mut WorldInfoEntry, WorldInfoError>;
fn evaluate<P: PluginBridge>(
&mut self,
registry: &mut ScopedRegistry<'_, P>,
) -> Result<String, WorldInfoError>;
fn determine_activation_status<P: PluginBridge>(
&mut self,
registry: &mut ScopedRegistry<'_, P>,
context: &String,
) -> Result<bool, WorldInfoError>;
fn set_enabled(&mut self, enabled: bool) -> &mut WorldInfoEntry;
fn set_constant(&mut self, constant: bool) -> &mut WorldInfoEntry;
fn set_insertion_point(
&mut self,
insertion_point: String,
) -> &mut WorldInfoEntry;
}
Required Methods§
fn create(name: &str, id: String, order: u32) -> WorldInfoEntry
fn set_text(&mut self, text: &str) -> &mut WorldInfoEntry
fn set_conditions(&mut self, conditions: Vec<String>) -> &mut WorldInfoEntry
fn parse<P: PluginBridge>( &mut self, ) -> Result<&mut WorldInfoEntry, WorldInfoError>
fn evaluate<P: PluginBridge>( &mut self, registry: &mut ScopedRegistry<'_, P>, ) -> Result<String, WorldInfoError>
fn determine_activation_status<P: PluginBridge>( &mut self, registry: &mut ScopedRegistry<'_, P>, context: &String, ) -> Result<bool, WorldInfoError>
fn set_enabled(&mut self, enabled: bool) -> &mut WorldInfoEntry
fn set_constant(&mut self, constant: bool) -> &mut WorldInfoEntry
fn set_insertion_point( &mut self, insertion_point: String, ) -> &mut WorldInfoEntry
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.