fn create_context(&mut self, dependent_contexts: &[ContextId], state_id: &str) -> ContextId {
        let new_context = Context::new(state_id, dependent_contexts.to_vec());
        self.contexts.insert(*new_context.id(), new_context.clone());
        *new_context.id()
    }
/// Creates a Context, and returns the resulting ContextId.
Creates a Context, and returns the resulting ContextId.
Creates a Context and returns the resulting ContextId .
fn create_context(&mut self, dependent_contexts: &[ContextId], state_id: &str) -> ContextId {
        let new_context = Context::new(state_id, dependent_contexts.to_vec());
        self.contexts.insert(*new_context.id(), new_context.clone());
        *new_context.id()
    }
fn create_context ( & mut self , dependent_contexts : & [ ContextId ] , state_id : & str ) -> ContextId { let new_context = Context :: new ( state_id , dependent_contexts . to_vec ( ) ) ; self . contexts . insert ( * new_context . id ( ) , new_context . clone ( ) ) ; * new_context . id ( ) }
Creates a Context, and returns the resulting ContextId.
Creates a Context and returns the resulting ContextId .
&mut self
dependent_contexts
&[ContextId]
state_id
&str
&mut self
dependent_contexts
&[ContextId]
state_id
&str