pub struct DataSpecification { /* private fields */ }
Expand description
A safe abstraction for the mCRL2 data specification.
Implementations§
Source§impl DataSpecification
impl DataSpecification
Sourcepub fn new(text: &str) -> Result<Self, Exception>
pub fn new(text: &str) -> Result<Self, Exception>
Parses the given text into a data specification
Sourcepub fn parse(&self, text: &str) -> Result<DataExpression, Box<dyn Error>>
pub fn parse(&self, text: &str) -> Result<DataExpression, Box<dyn Error>>
Parses the given text as a data expression for the spec.
Sourcepub fn parse_variable(&self, text: &str) -> Result<DataVariable, Box<dyn Error>>
pub fn parse_variable(&self, text: &str) -> Result<DataVariable, Box<dyn Error>>
Parses the given text as a data variable for the spec.
Sourcepub fn equations(&self) -> Vec<DataEquation>
pub fn equations(&self) -> Vec<DataEquation>
Returns the equations of the data specification.
Sourcepub fn constructors(
&self,
sort: &SortExpressionRef<'_>,
) -> Vec<DataFunctionSymbol>
pub fn constructors( &self, sort: &SortExpressionRef<'_>, ) -> Vec<DataFunctionSymbol>
Returns the constructors for the given sort expression.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataSpecification
impl RefUnwindSafe for DataSpecification
impl !Send for DataSpecification
impl !Sync for DataSpecification
impl Unpin for DataSpecification
impl UnwindSafe for DataSpecification
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