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

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

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

impl Utf8ArrayTrait for VarBinViewArray {}

impl BinaryArrayTrait for VarBinViewArray {}