pub struct ScalarGroupMemberBinding<S> {
pub descriptor_index: usize,
pub variable_index: usize,
pub entity_type_name: &'static str,
pub variable_name: &'static str,
pub allows_unassigned: bool,
/* private fields */
}Expand description
One scalar variable participating in a scalar group.
Typed members retain direct function pointers. Dynamic members retain the existing dynamic slot adapter; both are consumed through this one semantic surface by grouped construction and local search.
Fields§
§descriptor_index: usize§variable_index: usize§entity_type_name: &'static str§variable_name: &'static str§allows_unassigned: boolImplementations§
Source§impl<S> ScalarGroupMemberBinding<S>
impl<S> ScalarGroupMemberBinding<S>
pub fn from_scalar_slot(slot: ScalarVariableSlot<S>) -> Self
pub fn from_dynamic_slot(slot: DynamicScalarVariableSlot<S>) -> Self
Source§impl<S> ScalarGroupMemberBinding<S>
impl<S> ScalarGroupMemberBinding<S>
pub fn current_value(&self, solution: &S, entity_index: usize) -> Option<usize>
pub fn set_value( &self, solution: &mut S, entity_index: usize, value: 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>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for ScalarGroupMemberBinding<S>
impl<S> !UnwindSafe for ScalarGroupMemberBinding<S>
impl<S> Freeze 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>
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