Skip to content

Commit ac1f453

Browse files
Implement is_empty in addition to len
1 parent 10acfe0 commit ac1f453

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/transformers.rs

+4
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,8 @@ impl TransformationChain {
112112
pub fn len(&self) -> usize {
113113
self.chain.len()
114114
}
115+
116+
pub fn is_empty(&self) -> bool {
117+
self.chain.is_empty()
118+
}
115119
}

0 commit comments

Comments
 (0)