1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::array::varbin::VarBinArray;
use crate::array::VarBinEncoding;
use crate::variants::{BinaryArrayTrait, Utf8ArrayTrait, VariantsVTable};

impl VariantsVTable<VarBinArray> for VarBinEncoding {
    fn as_utf8_array<'a>(&self, array: &'a VarBinArray) -> Option<&'a dyn Utf8ArrayTrait> {
        Some(array)
    }

    fn as_binary_array<'a>(&self, array: &'a VarBinArray) -> Option<&'a dyn BinaryArrayTrait> {
        Some(array)
    }
}

impl Utf8ArrayTrait for VarBinArray {}

impl BinaryArrayTrait for VarBinArray {}