Struct biodivine_sketchbook::sketchbook::properties::dynamic_props::_hctl_formula::HctlFormula
source · pub struct HctlFormula {
tree: HctlTreeNode,
}
Expand description
A typesafe representation of a HCTL formula used in dynamic properties.
Fields§
§tree: HctlTreeNode
Implementations§
source§impl HctlFormula
impl HctlFormula
Creating hctl formulas.
sourcepub fn try_from_str(formula: &str) -> Result<HctlFormula, String>
pub fn try_from_str(formula: &str) -> Result<HctlFormula, String>
Parse HctlFormula
object directly from a string, which must be in a correct format.
We only check if the general HCTL syntax is correct, do not check proposition names
validity.
source§impl HctlFormula
impl HctlFormula
Editing HCTL formulas.
source§impl HctlFormula
impl HctlFormula
Observing HCTL formulas.
source§impl HctlFormula
impl HctlFormula
Static methods (to check validity of formula strings).
sourcepub fn check_syntax(formula: &str) -> Result<(), String>
pub fn check_syntax(formula: &str) -> Result<(), String>
Assert that formula is correctly formed based on HCTL syntactic rules.
sourcepub fn check_syntax_with_model(
formula: &str,
model: &ModelState,
) -> Result<(), String>
pub fn check_syntax_with_model( formula: &str, model: &ModelState, ) -> Result<(), String>
Assert that formula is correctly formed based on HCTL syntactic rules, and also
whether the propositions correspond to valid network variables used in the model
.
Trait Implementations§
source§impl Clone for HctlFormula
impl Clone for HctlFormula
source§fn clone(&self) -> HctlFormula
fn clone(&self) -> HctlFormula
Returns a copy 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 Debug for HctlFormula
impl Debug for HctlFormula
source§impl<'de> Deserialize<'de> for HctlFormula
impl<'de> Deserialize<'de> for HctlFormula
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for HctlFormula
impl Display for HctlFormula
source§impl Hash for HctlFormula
impl Hash for HctlFormula
source§impl PartialEq for HctlFormula
impl PartialEq for HctlFormula
source§impl Serialize for HctlFormula
impl Serialize for HctlFormula
impl Eq for HctlFormula
impl StructuralPartialEq for HctlFormula
Auto Trait Implementations§
impl Freeze for HctlFormula
impl RefUnwindSafe for HctlFormula
impl Send for HctlFormula
impl Sync for HctlFormula
impl Unpin for HctlFormula
impl UnwindSafe for HctlFormula
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
)§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.