You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: functions_veci8.rs
    path of file: ./repos/pgvecto.rs/src/datatype
    
    the code of the file until where you have to start completion: use crate::datatype::memory_veci8::Veci8Output;
use crate::prelude::*;

#[pgrx::pg_extern(immutable, parallel_safe, strict)]
fn _vectors_to_veci8(len: i32, alpha: f32, offset: f32, values: pgrx::Array<i32>) -> Veci8Output {
    check_value_dims_65535(len as usize);
    if (len as usize) != values.len() {
        bad_literal("Lengths of values and len are not matched.");
    }
    if values.contains_nulls() {
        bad_literal("Index or value contains 
    
fn _vectors_to_veci8(len: i32, alpha: f32, offset: f32, values: pgrx::Array<i32>) -> Veci8Output {
    check_value_dims_65535(len as usize);
    if (len as usize) != values.len() {
        bad_literal("Lengths of values and len are not matched.");
    }
    if values.contains_nulls() {
        bad_literal("Index or value contains nulls.");
    }
    let values = values
        .iter()
        .map(|x| I8(x.unwrap() as i8))
        .collect::<Vec<_>>();
    let (sum, l2_norm) = i8_precompute(&values, F32(alpha), F32(offset));
    Veci8Output::new(
        Veci8Borrowed::new_checked(
            values.len() as u32,
            &values,
            F32(alpha),
            F32(offset),
            sum,
            l2_norm,
        )
        .unwrap(),
    )
}