pub struct DynamicListVariableSlot<S> {
pub entity: EntityClassId,
pub variable: VariableId,
pub entity_type_name: &'static str,
pub variable_name: &'static str,
/* private fields */
}Expand description
Public dynamic list variable slot.
Fields§
§entity: EntityClassId§variable: VariableId§entity_type_name: &'static str§variable_name: &'static strImplementations§
Source§impl<S> DynamicListVariableSlot<S>
impl<S> DynamicListVariableSlot<S>
pub fn with_access( entity: EntityClassId, variable: VariableId, entity_type_name: &'static str, variable_name: &'static str, access: Arc<dyn DynamicListAccess<S>>, ) -> Self
pub fn with_descriptor_index(self, descriptor_index: usize) -> Self
pub fn resolve_descriptor_index( &mut self, descriptor: &SolutionDescriptor, ) -> Result<(), String>
pub fn resolved_against( self, descriptor: &SolutionDescriptor, ) -> Result<Self, String>
pub fn is_descriptor_resolved(&self) -> bool
pub fn descriptor_index(&self) -> usize
pub fn matches_target( &self, entity_class: Option<&str>, variable_name: Option<&str>, ) -> bool
pub fn entity_count(&self, solution: &S) -> usize
pub fn element_count(&self, solution: &S) -> usize
pub fn element(&self, solution: &S, element_index: usize) -> Option<usize>
pub fn assigned_elements(&self, solution: &S) -> Vec<usize>
pub fn list_len(&self, solution: &S, row: usize) -> usize
pub fn list_get(&self, solution: &S, row: usize, pos: usize) -> Option<usize>
pub fn list_insert( &self, solution: &mut S, row: usize, pos: usize, value: usize, )
pub fn list_remove( &self, solution: &mut S, row: usize, pos: usize, ) -> Option<usize>
Source§impl<S> DynamicListVariableSlot<S>where
S: DynamicModelBackend,
impl<S> DynamicListVariableSlot<S>where
S: DynamicModelBackend,
pub fn new( entity: EntityClassId, variable: VariableId, entity_type_name: &'static str, variable_name: &'static str, ) -> Self
Trait Implementations§
Source§impl<S> Clone for DynamicListVariableSlot<S>
impl<S> Clone for DynamicListVariableSlot<S>
Source§impl<S> Debug for DynamicListVariableSlot<S>
impl<S> Debug for DynamicListVariableSlot<S>
impl<S> Eq for DynamicListVariableSlot<S>
Source§impl<S> PartialEq for DynamicListVariableSlot<S>
impl<S> PartialEq for DynamicListVariableSlot<S>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for DynamicListVariableSlot<S>
impl<S> !UnwindSafe for DynamicListVariableSlot<S>
impl<S> Freeze for DynamicListVariableSlot<S>
impl<S> Send for DynamicListVariableSlot<S>
impl<S> Sync for DynamicListVariableSlot<S>
impl<S> Unpin for DynamicListVariableSlot<S>
impl<S> UnsafeUnpin for DynamicListVariableSlot<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