pub struct EntityRef {
pub type_name: String,
pub display: String,
}Expand description
An entity involved in a constraint match, as constraint analysis reports
it: the entity’s type name and its Debug rendering, taken when the match
is explained. It holds no copy of the entity, so explaining a match
requires only Debug on the entity type.
Fields§
§type_name: StringType name of the entity (e.g., “Shift”, “Employee”).
display: StringString representation for display.
Implementations§
Trait Implementations§
impl Eq for EntityRef
impl StructuralPartialEq for EntityRef
Auto Trait Implementations§
impl Forget for EntityRef
impl Freeze for EntityRef
impl Move for EntityRef
impl RefUnwindSafe for EntityRef
impl Send for EntityRef
impl Sync for EntityRef
impl Unpin for EntityRef
impl UnsafeUnpin 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