Skip to content

Commit

Permalink
impl From<Vec<T>> for Buffer (#6355)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel authored Sep 6, 2024
1 parent 1e63281 commit 9ff7d8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arrow-buffer/src/buffer/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,12 @@ impl<const N: usize> From<&[u8; N]> for Buffer {
}
}

impl<T: ArrowNativeType> From<Vec<T>> for Buffer {
fn from(value: Vec<T>) -> Self {
Self::from_vec(value)
}
}

/// Creating a `Buffer` instance by storing the boolean values into the buffer
impl FromIterator<bool> for Buffer {
fn from_iter<I>(iter: I) -> Self
Expand Down

0 comments on commit 9ff7d8b

Please sign in to comment.