pub struct ForgeIndexes {
pub blueprint_index: HashSet<BlueprintId>,
pub entity_index: HashMap<EntityId, BlueprintId>,
pub file_index: HashMap<FileId, BlueprintId>,
pub dependency_index: HashMap<DependencyId, BlueprintId>,
pub name_index: HashMap<String, BlueprintId>,
}Fields§
§blueprint_index: HashSet<BlueprintId>§entity_index: HashMap<EntityId, BlueprintId>§file_index: HashMap<FileId, BlueprintId>§dependency_index: HashMap<DependencyId, BlueprintId>§name_index: HashMap<String, BlueprintId>Implementations§
Source§impl ForgeIndexes
impl ForgeIndexes
pub fn new() -> Self
pub fn add_blueprint(&mut self, id: BlueprintId)
pub fn remove_blueprint(&mut self, id: &BlueprintId)
pub fn add_entity(&mut self, entity_id: EntityId, bp_id: BlueprintId)
pub fn add_file(&mut self, file_id: FileId, bp_id: BlueprintId)
pub fn add_dependency(&mut self, dep_id: DependencyId, bp_id: BlueprintId)
pub fn add_name(&mut self, name: String, bp_id: BlueprintId)
pub fn lookup_entity_blueprint( &self, entity_id: &EntityId, ) -> Option<&BlueprintId>
pub fn lookup_file_blueprint(&self, file_id: &FileId) -> Option<&BlueprintId>
pub fn lookup_by_name(&self, name: &str) -> Option<&BlueprintId>
pub fn clear(&mut self)
pub fn blueprint_count(&self) -> usize
Trait Implementations§
Source§impl Debug for ForgeIndexes
impl Debug for ForgeIndexes
Source§impl Default for ForgeIndexes
impl Default for ForgeIndexes
Source§fn default() -> ForgeIndexes
fn default() -> ForgeIndexes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForgeIndexes
impl RefUnwindSafe for ForgeIndexes
impl Send for ForgeIndexes
impl Sync for ForgeIndexes
impl Unpin for ForgeIndexes
impl UnsafeUnpin for ForgeIndexes
impl UnwindSafe for ForgeIndexes
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