pub struct DataState { /* private fields */ }
Expand description
Defines a DataState, which is a bit like a symbol table for data identifiers - except that it’s temporal (i.e., has a notion of values being overwritten).
Implementations§
source§impl DataState
impl DataState
sourcepub fn set_funcs(&mut self, name: impl Into<String>, new_ids: HashSet<Data>)
pub fn set_funcs(&mut self, name: impl Into<String>, new_ids: HashSet<Data>)
Sets a whole list of new possible values for this function, overwriting any existing ones.
§Arguments
name
: The name of the function to set the possible datasets for.new_ids
: The Data/IntermediateResult identifier to add as possible return dataset for this function.
sourcepub fn set_vars(&mut self, name: impl Into<String>, new_ids: HashSet<Data>)
pub fn set_vars(&mut self, name: impl Into<String>, new_ids: HashSet<Data>)
Sets a whole list of new possible values for this variable, overwriting any existing ones.
§Arguments
name
: The name of the variable to set the possible datasets for.id
: The Data/IntermediateResult identifier to add as possible return dataset for this variable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataState
impl RefUnwindSafe for DataState
impl Send for DataState
impl Sync for DataState
impl Unpin for DataState
impl UnwindSafe for DataState
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request