Skip to content
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

Deque shouldn't require copyable types #3748

Closed
brson opened this issue Oct 13, 2012 · 3 comments
Closed

Deque shouldn't require copyable types #3748

brson opened this issue Oct 13, 2012 · 3 comments

Comments

@brson
Copy link
Contributor

brson commented Oct 13, 2012

I want to enqueue non-copyable things!

@graydon
Copy link
Contributor

graydon commented Oct 13, 2012

Dvec and Deque should merge, call it Queue, implement as unsafe if necessary (moving gap through array, should be easy enough to isolate in a couple helpers).

@nikomatsakis
Copy link
Contributor

I believe DVec should be deleted in favor of a type MutVec<T> which is just an alias for Mut<~[T]>.

Perhaps the Queue functionality should just be methods on ~[T]?

@nikomatsakis
Copy link
Contributor

I haven't really explained how the Mut<T> type is supposed to be used though. I've been meaning to try and write something up on how I envision it working.

bors added a commit that referenced this issue Feb 17, 2013
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 22, 2024
readdir_r shim: assume FreeBSD v12+

Blocked on rust-lang/libc#3723 being released and propagating to std.
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

No branches or pull requests

4 participants