categories | tags | Aimee's Blog
Aimee's Study Notes

It is updated automatically after each commit to the org-notes repo. It was last updated on Sep 20, 2022 16:16 UTC.


This page was created/modified in commit 4bfb4be "." on 2021-07-01.
Markdown source of this page

Syntax of method calls

categories: hacking

tags: rust


Description/Summary

Idiomatic way of method calls in Rust.

Content

Method chaining while reading

a.foo() -> Type B {}

b.bar() -> Type Z {}

For the readability, you almost always use . to call a function. This is the idiomatic way.


This site is generated with ox-hugo for Emacs/Org-mode + hugo-bare-min-theme [Aimee's Study Notes]