use crate::attribute::Attribute;
pub struct Document<'a, V> {
vector: &'a V,
attributes: Vec<Attribute>,
}
impl<'a, V> Document<'a, V> {
pub fn new(vector: &'a V, attributes: Vec<Attribute>) -> Self {
Self { vector, attributes }
}
pub(crate) fn vector(&self) -> &'a V {
self.vector
}
pub(crate) fn attributes(&self) -> &Vec<Attribute> {
&self.attributes
}
}