pub enum ExtensionBehavior {
Panic,
Limit,
Passthrough,
}Expand description
Strategy for handling mismatched slice lengths in binary vector operations.
Binary vector operations like Builder::vector_add and Builder::vector_zip_then_lookup
take two block slices that may differ in length. This enum controls what happens
once the shorter slice is exhausted.
Variants§
Panic
Panics if the slices have different lengths.
Limit
Truncates to the length of the shorter slice, discarding surplus elements.
Passthrough
Passes surplus elements from the longer slice through unchanged.
Auto Trait Implementations§
impl Freeze for ExtensionBehavior
impl RefUnwindSafe for ExtensionBehavior
impl Send for ExtensionBehavior
impl Sync for ExtensionBehavior
impl Unpin for ExtensionBehavior
impl UnsafeUnpin for ExtensionBehavior
impl UnwindSafe for ExtensionBehavior
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more