Struct sway_core::TypedFunctionDeclaration
source · [−]pub struct TypedFunctionDeclaration { /* private fields */ }Implementations
pub fn type_check(
arguments: TypeCheckArguments<'_, FunctionDeclaration>
) -> CompileResult<TypedFunctionDeclaration>
Converts a TypedFunctionDeclaration into a value that is to be used in contract function selectors. Hashes the name and parameters using SHA256, and then truncates to four bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypedFunctionDeclaration
impl Send for TypedFunctionDeclaration
impl Sync for TypedFunctionDeclaration
impl Unpin for TypedFunctionDeclaration
impl UnwindSafe for TypedFunctionDeclaration
Blanket Implementations
Mutably borrows from an owned value. Read more