pub struct ScalarGroupMember<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 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>§allows_unassigned: boolImplementations§
Source§impl<S> ScalarGroupMember<S>
impl<S> ScalarGroupMember<S>
pub fn from_scalar_context(context: ScalarVariableContext<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
Trait Implementations§
Source§impl<S> Clone for ScalarGroupMember<S>
impl<S> Clone for ScalarGroupMember<S>
Source§impl<S> Debug for ScalarGroupMember<S>
impl<S> Debug for ScalarGroupMember<S>
impl<S> Copy for ScalarGroupMember<S>
Auto Trait Implementations§
impl<S> Freeze for ScalarGroupMember<S>
impl<S> RefUnwindSafe for ScalarGroupMember<S>
impl<S> Send for ScalarGroupMember<S>
impl<S> Sync for ScalarGroupMember<S>
impl<S> Unpin for ScalarGroupMember<S>
impl<S> UnsafeUnpin for ScalarGroupMember<S>
impl<S> UnwindSafe for ScalarGroupMember<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