feat(sdk): `Chunk::is_gap` and `::is_items` are now public.

This commit is contained in:
Ivan Enderlin 2024-03-18 14:30:30 +01:00
parent a8e522c164
commit 88f75a85bb
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -720,12 +720,12 @@ impl<Item, Gap, const CAPACITY: usize> Chunk<Item, Gap, CAPACITY> {
}
/// Check whether this current chunk is a gap chunk.
fn is_gap(&self) -> bool {
pub fn is_gap(&self) -> bool {
matches!(self.content, ChunkContent::Gap(..))
}
/// Check whether this current chunk is an items chunk.
fn is_items(&self) -> bool {
pub fn is_items(&self) -> bool {
!self.is_gap()
}