We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 907cb5f commit fb6e83eCopy full SHA for fb6e83e
atom/src/space/vec.rs
@@ -135,6 +135,16 @@ impl<T: Copy + 'static> AlignedVec<T> {
135
pub fn into_boxed_space(self) -> Box<AlignedSpace<T>> {
136
AlignedSpace::from_boxed_uninit_slice(self.inner.into_boxed_slice())
137
}
138
+
139
+ #[inline]
140
+ pub fn into_vec(self) -> Vec<MaybeUninit<T>> {
141
+ self.inner
142
+ }
143
144
145
+ pub fn from_vec(vec: Vec<MaybeUninit<T>>) -> Self {
146
+ Self { inner: vec }
147
148
149
150
/// A lightweight [`SpaceWriter`](crate::space::SpaceWriter) that writes into a growable byte buffer (backed by [`AlignedVec`]) using a cursor.
0 commit comments