Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xee-interpreter/src/function/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Array {
self.0.get(index)
}

pub(crate) fn iter(&self) -> impl DoubleEndedIterator<Item = &sequence::Sequence> {
pub fn iter(&self) -> impl DoubleEndedIterator<Item = &sequence::Sequence> {
self.0.iter()
}

Expand Down Expand Up @@ -98,7 +98,7 @@ impl Array {
Some(Self::new(vec))
}

pub(crate) fn len(&self) -> usize {
pub fn len(&self) -> usize {
self.0.len()
}

Expand Down
8 changes: 4 additions & 4 deletions xee-interpreter/src/function/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Map {
Ok(Map::from_map(result))
}

pub(crate) fn len(&self) -> usize {
pub fn len(&self) -> usize {
match self {
Map::Empty(map) => map.len(),
Map::One(map) => map.len(),
Expand All @@ -85,21 +85,21 @@ impl Map {
Map::Many(map) => map.is_empty(),
}
}
pub(crate) fn get(&self, key: &atomic::Atomic) -> Option<&sequence::Sequence> {
pub fn get(&self, key: &atomic::Atomic) -> Option<&sequence::Sequence> {
match self {
Map::Empty(map) => map.get(key),
Map::One(map) => map.get(key),
Map::Many(map) => map.get(key),
}
}
pub(crate) fn keys(&self) -> Box<dyn Iterator<Item = &atomic::Atomic> + '_> {
pub fn keys(&self) -> Box<dyn Iterator<Item = &atomic::Atomic> + '_> {
match self {
Map::Empty(map) => Box::new(map.keys()),
Map::One(map) => Box::new(map.keys()),
Map::Many(map) => Box::new(map.keys()),
}
}
pub(crate) fn entries(
pub fn entries(
&self,
) -> Box<dyn Iterator<Item = (&atomic::Atomic, &sequence::Sequence)> + '_> {
match self {
Expand Down