1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use crate::imp::structs::list_def_obj::ListDefObj;
#[derive(Debug, Clone, PartialEq)]
pub struct MutListDef {
default: Box<ListDefObj>,
undefiable: bool,
//compatible : Box<HashS<String>>,
}
impl MutListDef {
pub(crate) fn new(default: ListDefObj, undefiable: bool) -> MutListDef {
MutListDef { default: Box::new(default), undefiable }
}
pub fn default(&self) -> &ListDefObj{ self.default.as_ref() }
pub fn undefiable(&self) -> bool{ self.undefiable }
//pub(crate) fn compatible(&self) -> &HashS<String>{ self.compatible.as_ref() }
}