pub struct EntityRef {
pub index: usize,
pub type_name: &'static str,
pub collection_field: &'static str,
}Expand description
A reference to a planning entity with its index in the solution.
This struct provides a way to identify and access entities during solving without needing to know the concrete entity type.
Fields§
§index: usizeIndex of this entity in its collection.
type_name: &'static strName of the entity type.
collection_field: &'static strName of the collection field in the solution.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityRef
impl RefUnwindSafe for EntityRef
impl Send for EntityRef
impl Sync for EntityRef
impl Unpin for EntityRef
impl UnwindSafe for EntityRef
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