Skip to content

Conversation

L-Super
Copy link

@L-Super L-Super commented Jul 13, 2025

All functions defined within an impl block are called associated functions because they’re associated with the type named after the impl.

https://doc.rust-lang.org/book/ch05-03-method-syntax.html#associated-functions

All functions defined within an impl block are called associated functions because they’re associated with the type named after the impl.

> https://doc.rust-lang.org/book/ch05-03-method-syntax.html#associated-functions
@sunface
Copy link
Owner

sunface commented Oct 17, 2025

你也说了是 functions,methods 不在其中 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants