pub struct EntityRegistry { /* private fields */ }Expand description
Explicit registry of known entities. The AI client registers entities it cares about so that gap detection can be precise rather than heuristic.
Implementations§
Source§impl EntityRegistry
impl EntityRegistry
pub fn new() -> Self
pub fn register(&mut self, entity: &str)
pub fn register_batch(&mut self, entities: &[&str])
pub fn unregister(&mut self, entity: &str)
pub fn is_known(&self, entity: &str) -> bool
pub fn list(&self) -> Vec<&str>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityRegistry
impl RefUnwindSafe for EntityRegistry
impl Send for EntityRegistry
impl Sync for EntityRegistry
impl Unpin for EntityRegistry
impl UnsafeUnpin for EntityRegistry
impl UnwindSafe for EntityRegistry
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