Skip to content

Commit 4cd3942

Browse files
committed
Add (empty) meta implementation to PersistentList
1 parent b021bb0 commit 4cd3942

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/persistent_list.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use std::iter::FromIterator;
44
use std::rc::Rc;
55

66
use crate::value::{ToValue, Value};
7+
use crate::persistent_list_map::PersistentListMap;
8+
use crate::traits;
79
use std::hash::Hash;
810

911
#[derive(Debug, Clone, PartialEq, Hash)]
@@ -66,6 +68,18 @@ impl ToPersistentList for Vec<Rc<Value>> {
6668
self.into_iter().collect::<PersistentList>()
6769
}
6870
}
71+
impl traits::IMeta for PersistentList {
72+
fn meta(&self) -> PersistentListMap {
73+
// @TODO implement
74+
PersistentListMap::Empty
75+
}
76+
}
77+
impl traits::IObj for PersistentList {
78+
fn with_meta(&self,meta: PersistentListMap) -> PersistentList {
79+
// @TODO implement
80+
self.clone()
81+
}
82+
}
6983
impl fmt::Display for PersistentList {
7084
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7185
let str = match self {

0 commit comments

Comments
 (0)