pub struct StateWithHashableSignatureVariables {
pub signature_variables: HashableSignatureVariables,
pub resource_variables: ResourceVariables,
}Expand description
State that can be hashed by signature variables.
However, using continuous variables in signature variables is not recommended because it may cause a numerical issue.
Fields§
§signature_variables: HashableSignatureVariablesSignature variables.
resource_variables: ResourceVariablesResource variables.
Trait Implementations§
Source§impl Clone for StateWithHashableSignatureVariables
impl Clone for StateWithHashableSignatureVariables
Source§fn clone(&self) -> StateWithHashableSignatureVariables
fn clone(&self) -> StateWithHashableSignatureVariables
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StateWithHashableSignatureVariables
impl Default for StateWithHashableSignatureVariables
Source§fn default() -> StateWithHashableSignatureVariables
fn default() -> StateWithHashableSignatureVariables
Returns the “default value” for a type. Read more
Source§impl From<State> for StateWithHashableSignatureVariables
impl From<State> for StateWithHashableSignatureVariables
Source§fn from(state: State) -> StateWithHashableSignatureVariables
fn from(state: State) -> StateWithHashableSignatureVariables
Converts to this type from the input type.
Source§impl<K> From<StateInRegistry<K>> for StateWithHashableSignatureVariables
impl<K> From<StateInRegistry<K>> for StateWithHashableSignatureVariables
Source§fn from(state: StateInRegistry<K>) -> StateWithHashableSignatureVariables
fn from(state: StateInRegistry<K>) -> StateWithHashableSignatureVariables
Converts to this type from the input type.
Source§impl<K> From<StateWithHashableSignatureVariables> for StateInRegistry<K>
impl<K> From<StateWithHashableSignatureVariables> for StateInRegistry<K>
Source§fn from(state: StateWithHashableSignatureVariables) -> StateInRegistry<K>
fn from(state: StateWithHashableSignatureVariables) -> StateInRegistry<K>
Converts to this type from the input type.
Source§impl PartialEq for StateWithHashableSignatureVariables
impl PartialEq for StateWithHashableSignatureVariables
Source§fn eq(&self, other: &StateWithHashableSignatureVariables) -> bool
fn eq(&self, other: &StateWithHashableSignatureVariables) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl StateInterface for StateWithHashableSignatureVariables
impl StateInterface for StateWithHashableSignatureVariables
Source§fn get_number_of_set_variables(&self) -> usize
fn get_number_of_set_variables(&self) -> usize
Returns the number of set variables;
Source§fn get_number_of_vector_variables(&self) -> usize
fn get_number_of_vector_variables(&self) -> usize
Returns the number of vector variables;
Source§fn get_vector_variable(&self, i: usize) -> &Vector
fn get_vector_variable(&self, i: usize) -> &Vector
Returns the value of a vector variable. Read more
Source§fn get_number_of_element_variables(&self) -> usize
fn get_number_of_element_variables(&self) -> usize
Returns the number of element variables;
Source§fn get_element_variable(&self, i: usize) -> Element
fn get_element_variable(&self, i: usize) -> Element
Returns the value of an element variable. Read more
Source§fn get_number_of_integer_variables(&self) -> usize
fn get_number_of_integer_variables(&self) -> usize
Returns the number of integer numeric variables;
Source§fn get_integer_variable(&self, i: usize) -> Integer
fn get_integer_variable(&self, i: usize) -> Integer
Returns the value of an integer numeric variable. Read more
Source§fn get_number_of_continuous_variables(&self) -> usize
fn get_number_of_continuous_variables(&self) -> usize
Returns the number of continuous numeric variables;
Source§fn get_continuous_variable(&self, i: usize) -> Continuous
fn get_continuous_variable(&self, i: usize) -> Continuous
Returns the value of a continuous numeric variable. Read more
Source§fn get_number_of_element_resource_variables(&self) -> usize
fn get_number_of_element_resource_variables(&self) -> usize
Returns the number of element resource variables;
Source§fn get_element_resource_variable(&self, i: usize) -> Element
fn get_element_resource_variable(&self, i: usize) -> Element
Returns the value of an element resource variable. Read more
Source§fn get_number_of_integer_resource_variables(&self) -> usize
fn get_number_of_integer_resource_variables(&self) -> usize
Returns the number of integer resource variables;
Source§fn get_integer_resource_variable(&self, i: usize) -> Integer
fn get_integer_resource_variable(&self, i: usize) -> Integer
Returns the value of an integer resource variable. Read more
Source§fn get_number_of_continuous_resource_variables(&self) -> usize
fn get_number_of_continuous_resource_variables(&self) -> usize
Returns the number of continuous resource variables;
Source§fn get_continuous_resource_variable(&self, i: usize) -> Continuous
fn get_continuous_resource_variable(&self, i: usize) -> Continuous
Returns the value of a continuous resource variable. Read more
Source§fn apply_effect<T>(
&self,
effect: &Effect,
function_cache: &mut StateFunctionCache,
state_functions: &StateFunctions,
registry: &TableRegistry,
) -> T
fn apply_effect<T>( &self, effect: &Effect, function_cache: &mut StateFunctionCache, state_functions: &StateFunctions, registry: &TableRegistry, ) -> T
Returns the transitioned state by the effect. Read more
impl StructuralPartialEq for StateWithHashableSignatureVariables
Auto Trait Implementations§
impl Freeze for StateWithHashableSignatureVariables
impl RefUnwindSafe for StateWithHashableSignatureVariables
impl Send for StateWithHashableSignatureVariables
impl Sync for StateWithHashableSignatureVariables
impl Unpin for StateWithHashableSignatureVariables
impl UnsafeUnpin for StateWithHashableSignatureVariables
impl UnwindSafe for StateWithHashableSignatureVariables
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> 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