---
title: "Discussion on \"Functions In Rust\" | Hashnode"
description: "Discussion on \"Functions In Rust\". In this article, we'll be discussing what functions are and when to use them in Rust.\nAs some of us already know, functions are \"self-contained\" modules of code that accomplish a specific task. Generally, functions are used to encapsulate certain pie..."
url: "https://hashnode.com/posts/functions-in-rust/5f840e617fb79f3081e6695a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Functions In Rust](https://edfloreshz.hashnode.dev/functions-in-rust?utm_source=hashnode&utm_medium=feed)

In this article, we'll be discussing what functions are and when to use them in Rust. As some of us already know, functions are "self-contained" modules of code that accomplish a specific task. Generally, functions are used to encapsulate certain pie...

Oct 12, 2020 · 5 min read · edfloreshz.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Eduardo Flores](https://hashnode.com/@edfloreshz)

@edfloreshz

  
[View profile](https://hashnode.com/@edfloreshz)

Rustacean 🦀

I’m a software engineer very enthusiastic about Rust.

## Responses 1

Markdown supported · ⌘↵ to post

[Ayushi Rawat](https://hashnode.com/@ayushi7rawat)

[Oct 12, 2020](https://hashnode.com/posts/functions-in-rust/5f840e617fb79f3081e6695a/comment/5f8412b8365d8e306013225a)

Very informative and nicely explained! 😄

[Eduardo Flores](https://hashnode.com/@edfloreshz)

[Oct 12, 2020](https://hashnode.com/posts/functions-in-rust/5f840e617fb79f3081e6695a/comment/5f8412b8365d8e306013225a#reply-5f84134c7fb79f3081e6699d)

Thank you Ayushi! 😊
