-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rephrase statement in Deref: "Collections are smart pointers" #257
Labels
Projects
Comments
I agree it's really complicated. |
I don't understand that sentence itself. I thought bound checks are usually eliminated when using collections and iterator method? |
@pickfire I don't think so, it said method and trait are not taken into account. the statement link at below |
@MarcoIeni I think so too |
simonsan
added
C-amendment
Category: Amendments to existing content
A-idiom
Area: Idioms
labels
May 5, 2021
simonsan
changed the title
There is a statement that I don’t understand in "Collections are smart pointers"
Rephrase statement in Deref: "Collections are smart pointers"
Apr 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Disadvantages
Methods and traits only available via dereferencing are not taken into account when bounds checking, so generic programming with data structures using this pattern can get complex (see the Borrow and AsRef traits, etc.).
why method and traits only available via dereferencing are not taken into account when bounds checking ?
The text was updated successfully, but these errors were encountered: