diff options
Diffstat (limited to 'evc/src/block.rs')
-rw-r--r-- | evc/src/block.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/evc/src/block.rs b/evc/src/block.rs index a3d040d..dae538c 100644 --- a/evc/src/block.rs +++ b/evc/src/block.rs @@ -67,3 +67,9 @@ impl Block { Ok(Self { size, inner }) } } + +impl Block { + pub fn is_literal(&self) -> bool { + matches!(self.inner, BlockInner::Literal(..)) + } +} |