You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently follow Vec and have an allocator type parameter with default type set to Global. However, to be useful, users of OwnedBuf also need to have such a type parameter (i.e., not use the default), and in the case of OwnedRead that inhibits using it as a trait object.
The text was updated successfully, but these errors were encountered:
The only place we use the allocator at the moment is to pass to the destructor function. If we take a closure, then the allocator could be captured maybe? Then we wouldn't need the allocator type param at all
I currently follow
Vec
and have an allocator type parameter with default type set toGlobal
. However, to be useful, users ofOwnedBuf
also need to have such a type parameter (i.e., not use the default), and in the case ofOwnedRead
that inhibits using it as a trait object.The text was updated successfully, but these errors were encountered: