Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
added mut_values() for fixedSizeListArray
Browse files Browse the repository at this point in the history
  • Loading branch information
«ratal» committed Jan 16, 2024
1 parent b929bcc commit 003d8ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/array/fixed_size_list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,16 @@ impl FixedSizeListArray {
self.validity.as_ref()
}

/// Returns the inner array.
/// Returns the inner array reference.
pub fn values(&self) -> &Box<dyn Array> {
&self.values
}

/// Returns the inner array mutable reference.
pub fn mut_values(&mut self) -> &mut Box<dyn Array> {
&mut self.values
}

/// Returns the `Vec<T>` at position `i`.
/// # Panic:
/// panics iff `i >= self.len()`
Expand Down

0 comments on commit 003d8ef

Please sign in to comment.