pub struct Indictment<'a, Sc: Score> {
pub entity: EntityRef,
pub score: Sc,
pub constraint_matches: HashMap<&'a ConstraintRef, Vec<DetailedConstraintMatch<'a, Sc>>>,
}Fields§
§entity: EntityRef§score: Sc§constraint_matches: HashMap<&'a ConstraintRef, Vec<DetailedConstraintMatch<'a, Sc>>>Implementations§
Source§impl<'a, Sc: Score> Indictment<'a, Sc>
impl<'a, Sc: Score> Indictment<'a, Sc>
pub fn new(entity: EntityRef) -> Self
pub fn add_match(&mut self, constraint_match: DetailedConstraintMatch<'a, Sc>)
pub fn match_count(&self) -> usize
pub fn violated_constraints(&self) -> Vec<&ConstraintRef>
pub fn constraint_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a, Sc> Freeze for Indictment<'a, Sc>where
Sc: Freeze,
impl<'a, Sc> !RefUnwindSafe for Indictment<'a, Sc>
impl<'a, Sc> Send for Indictment<'a, Sc>
impl<'a, Sc> Sync for Indictment<'a, Sc>
impl<'a, Sc> Unpin for Indictment<'a, Sc>where
Sc: Unpin,
impl<'a, Sc> UnsafeUnpin for Indictment<'a, Sc>where
Sc: UnsafeUnpin,
impl<'a, Sc> !UnwindSafe for Indictment<'a, Sc>
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