pub struct SemanticFunction {
pub name: String,
pub return_type: SemanticType,
pub parameters: Vec<SemanticParameter>,
pub has_body: bool,
pub is_builtin: bool,
}Expand description
One resolved function signature.
Fields§
§name: StringFunction name.
return_type: SemanticTypeResolved return type.
parameters: Vec<SemanticParameter>Parameters in declaration order.
has_body: boolWhether this function has a body in the current script.
is_builtin: boolWhether this function came from nwscript.nss.
Trait Implementations§
Source§impl Clone for SemanticFunction
impl Clone for SemanticFunction
Source§fn clone(&self) -> SemanticFunction
fn clone(&self) -> SemanticFunction
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 SemanticFunction
impl Debug for SemanticFunction
Source§impl<'de> Deserialize<'de> for SemanticFunction
impl<'de> Deserialize<'de> for SemanticFunction
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 PartialEq for SemanticFunction
impl PartialEq for SemanticFunction
Source§impl Serialize for SemanticFunction
impl Serialize for SemanticFunction
impl StructuralPartialEq for SemanticFunction
Auto Trait Implementations§
impl Freeze for SemanticFunction
impl RefUnwindSafe for SemanticFunction
impl Send for SemanticFunction
impl Sync for SemanticFunction
impl Unpin for SemanticFunction
impl UnsafeUnpin for SemanticFunction
impl UnwindSafe for SemanticFunction
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