pub struct WorldInfo<P: PluginBridge + 'static> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<P: PluginBridge> WorldInfoFactory<P> for WorldInfo<P>
impl<P: PluginBridge> WorldInfoFactory<P> for WorldInfo<P>
Source§fn new(registry: Box<WorldInfoRegistry<P>>) -> Self
fn new(registry: Box<WorldInfoRegistry<P>>) -> Self
Creates a new empty world info
Source§fn insert_entry(&mut self, entry: WorldInfoEntry) -> &mut Self
fn insert_entry(&mut self, entry: WorldInfoEntry) -> &mut Self
Inserts a world info entry
Source§fn set_permitted_processors(&mut self, processors: Vec<String>) -> &mut Self
fn set_permitted_processors(&mut self, processors: Vec<String>) -> &mut Self
Sets the list of permitted processors
Source§fn new_entry(&mut self, name: &str, order: u32) -> &mut WorldInfoEntry
fn new_entry(&mut self, name: &str, order: u32) -> &mut WorldInfoEntry
Creates a new world info entry with a random id and inserts it
Source§fn insert_entries(&mut self, entries: Vec<WorldInfoEntry>) -> &mut Self
fn insert_entries(&mut self, entries: Vec<WorldInfoEntry>) -> &mut Self
Inserts a list of world info entries
Auto Trait Implementations§
impl<P> Freeze for WorldInfo<P>
impl<P> !RefUnwindSafe for WorldInfo<P>
impl<P> !Send for WorldInfo<P>
impl<P> !Sync for WorldInfo<P>
impl<P> Unpin for WorldInfo<P>
impl<P> !UnwindSafe for WorldInfo<P>
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