more buffers

This commit is contained in:
bendn 2023-10-26 20:04:12 +07:00
parent 73237f541c
commit e6f2a381e5
No known key found for this signature in database
GPG key ID: 0D9D3A2A3B2A93D6
2 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "fimg"
version = "0.4.16"
version = "0.4.17"
authors = ["bend-n <bend.n@outlook.com>"]
license = "MIT"
edition = "2021"

View file

@ -98,4 +98,14 @@ mod buf {
N
}
}
impl<T, const N: usize> Buffer for Box<[T; N]> {
fn len(&self) -> usize {
N
}
}
impl<T> Buffer for Box<[T]> {
fn len(&self) -> usize {
<[T]>::len(self)
}
}
}