Skip to content

option::unwrap #1872

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

Closed
wants to merge 2 commits into from
Closed

option::unwrap #1872

wants to merge 2 commits into from

Conversation

brson
Copy link
Contributor

@brson brson commented Feb 21, 2012

This adds a function, option::unwrap, that uses some unsafe code to remove the value from the inside of a some variant without copying it.

I want to use this to implement 'borrowable pointers' for some concurrency experiments I'm doing with rustdoc.

This function uses some unsafe code to move the value out of an option.
@brson brson closed this Feb 21, 2012
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Kobzol pushed a commit to Kobzol/rust that referenced this pull request Jul 20, 2025
`aarch64`: use `intrinsics::simd` for horizontal add and `abs`
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Jul 30, 2025
`aarch64`: use `intrinsics::simd` for horizontal add and `abs`
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