InverseVariableSupply

Trait InverseVariableSupply 

Source
pub trait InverseVariableSupply {
    // Required method
    fn get_inverse_dyn(
        &self,
        element: &dyn Any,
    ) -> Option<Box<dyn Any + Send + Sync>>;
}
Expand description

Trait for supplies that provide inverse (owner entity) information.

Required Methods§

Source

fn get_inverse_dyn( &self, element: &dyn Any, ) -> Option<Box<dyn Any + Send + Sync>>

Gets the entity that owns an element, if assigned.

Implementors§

Source§

impl<Element, Entity> InverseVariableSupply for ListVariableStateSupply<Element, Entity>
where Element: Eq + Hash + Clone + Send + Sync + 'static, Entity: Clone + Send + Sync + 'static,