pub struct Indictment {
pub indicted_object: ObjectHandle,
pub constraint_matches: Vec<ConstraintMatch>,
pub score: ScoreDto,
}Fields§
§indicted_object: ObjectHandle§constraint_matches: Vec<ConstraintMatch>§score: ScoreDtoImplementations§
Source§impl Indictment
impl Indictment
pub fn new(object: ObjectHandle, score: ScoreDto) -> Self
pub fn with_constraint_match(self, constraint_match: ConstraintMatch) -> Self
pub fn constraint_count(&self) -> usize
pub fn is_feasible(&self) -> bool
pub fn hard_score(&self) -> i64
pub fn soft_score(&self) -> i64
pub fn get_constraint_matches_by_name( &self, name: &str, ) -> Vec<&ConstraintMatch>
Trait Implementations§
Source§impl Clone for Indictment
impl Clone for Indictment
Source§fn clone(&self) -> Indictment
fn clone(&self) -> Indictment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Indictment
impl Debug for Indictment
Source§impl<'de> Deserialize<'de> for Indictment
impl<'de> Deserialize<'de> for Indictment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Indictment
impl PartialEq for Indictment
Source§impl Serialize for Indictment
impl Serialize for Indictment
impl StructuralPartialEq for Indictment
Auto Trait Implementations§
impl Freeze for Indictment
impl RefUnwindSafe for Indictment
impl Send for Indictment
impl Sync for Indictment
impl Unpin for Indictment
impl UnwindSafe for Indictment
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