summaryrefslogtreecommitdiff
path: root/Static class functions are called associated functions.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-08-21 22:09:29 +0200
committerJasper Ras <jras@hostnet.nl>2025-08-21 22:09:29 +0200
commit27514d58573ce1f844af4ea60afa72c7f58f1cd7 (patch)
tree4b16c31f73cb72435d03d5e105261143f8ca135f /Static class functions are called associated functions.md
parent22675cd8dc75d8b8d4b0f818f5b093efbc364802 (diff)
vault backup: 2025-08-21 22:09:29HEADmain
Diffstat (limited to 'Static class functions are called associated functions.md')
-rw-r--r--Static class functions are called associated functions.md3
1 files changed, 0 insertions, 3 deletions
diff --git a/Static class functions are called associated functions.md b/Static class functions are called associated functions.md
index dc4c195..f6421b0 100644
--- a/Static class functions are called associated functions.md
+++ b/Static class functions are called associated functions.md
@@ -1,6 +1,3 @@
-[[Rust]]
-
----
An `associated function` is what in other OOP languages like PHP would be considered a static function on a class. So it's callable directly from on type rather than an object. An example in Rust is `String::new()`.
It is indicated by the double colon `::`. \ No newline at end of file