pub struct FunctionModel {
pub name: String,
pub parameters: Vec<String>,
pub return_type: Option<String>,
pub mutates: BTreeSet<String>,
pub reads: BTreeSet<String>,
pub is_entry_point: bool,
pub is_pure: bool,
}Expand description
A function or entry point in a program.
Fields§
§name: StringFunction name.
parameters: Vec<String>Function signature/parameters.
return_type: Option<String>Return type.
mutates: BTreeSet<String>State variables this function mutates.
reads: BTreeSet<String>State variables this function reads.
is_entry_point: boolWhether this is an entry point.
is_pure: boolWhether it’s pure/view (doesn’t mutate state).
Trait Implementations§
Source§impl Clone for FunctionModel
impl Clone for FunctionModel
Source§fn clone(&self) -> FunctionModel
fn clone(&self) -> FunctionModel
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 Debug for FunctionModel
impl Debug for FunctionModel
Source§impl<'de> Deserialize<'de> for FunctionModel
impl<'de> Deserialize<'de> for FunctionModel
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
Auto Trait Implementations§
impl Freeze for FunctionModel
impl RefUnwindSafe for FunctionModel
impl Send for FunctionModel
impl Sync for FunctionModel
impl Unpin for FunctionModel
impl UnsafeUnpin for FunctionModel
impl UnwindSafe for FunctionModel
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