pub struct ScalarGroupMemberBinding<S> {
pub descriptor_index: usize,
pub variable_index: usize,
pub entity_type_name: &'static str,
pub variable_name: &'static str,
pub getter: ScalarGetter<S>,
pub setter: ScalarSetter<S>,
pub value_source: ValueSource<S>,
pub entity_count: fn(&S) -> usize,
pub candidate_values: Option<ScalarCandidateValues<S>>,
pub allows_unassigned: bool,
}Fields§
§descriptor_index: usize§variable_index: usize§entity_type_name: &'static str§variable_name: &'static str§getter: ScalarGetter<S>§setter: ScalarSetter<S>§value_source: ValueSource<S>§entity_count: fn(&S) -> usize§candidate_values: Option<ScalarCandidateValues<S>>§allows_unassigned: boolImplementations§
Source§impl<S> ScalarGroupMemberBinding<S>
impl<S> ScalarGroupMemberBinding<S>
pub fn from_scalar_slot(slot: ScalarVariableSlot<S>) -> Self
pub fn current_value(&self, solution: &S, entity_index: usize) -> Option<usize>
pub fn value_is_legal( &self, solution: &S, entity_index: usize, candidate: Option<usize>, ) -> bool
pub fn entity_count(&self, solution: &S) -> usize
pub fn candidate_values( &self, solution: &S, entity_index: usize, value_candidate_limit: Option<usize>, ) -> Vec<usize>
Trait Implementations§
Source§impl<S> Clone for ScalarGroupMemberBinding<S>
impl<S> Clone for ScalarGroupMemberBinding<S>
Source§impl<S> Debug for ScalarGroupMemberBinding<S>
impl<S> Debug for ScalarGroupMemberBinding<S>
impl<S> Copy for ScalarGroupMemberBinding<S>
Auto Trait Implementations§
impl<S> Freeze for ScalarGroupMemberBinding<S>
impl<S> RefUnwindSafe for ScalarGroupMemberBinding<S>
impl<S> Send for ScalarGroupMemberBinding<S>
impl<S> Sync for ScalarGroupMemberBinding<S>
impl<S> Unpin for ScalarGroupMemberBinding<S>
impl<S> UnsafeUnpin for ScalarGroupMemberBinding<S>
impl<S> UnwindSafe for ScalarGroupMemberBinding<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more