Skip to content

Commit ad8b508

Browse files
committed
fix mut slots
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent ab14f84 commit ad8b508

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

vortex-array/src/vtable/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,17 @@ pub trait VTable: 'static + Clone + Sized + Send + Sync + Debug {
184184
/// without copying.
185185
fn slots(array: &Self::Array) -> &[Option<ArrayRef>];
186186

187+
/// Returns a mutable reference to the slots of the array.
188+
///
189+
/// This allows callers to replace individual slots in-place without cloning all children.
190+
fn slots_mut(array: &mut Self::Array) -> &mut [Option<ArrayRef>];
191+
187192
/// Returns the name of the slot at the given index.
188193
///
189194
/// # Panics
190195
/// Panics if `idx >= slots(array).len()`.
191196
fn slot_name(array: &Self::Array, idx: usize) -> String;
192197

193-
/// Returns a mutable reference to the slots of the array.
194-
///
195-
/// This allows callers to replace individual slots in-place without cloning all children.
196-
fn slots_mut(array: &mut Self::Array) -> &mut [Option<ArrayRef>];
197-
198198
/// Execute this array by returning an [`ExecutionResult`].
199199
///
200200
/// Instead of recursively executing children, implementations should return

0 commit comments

Comments
 (0)