mirror of
https://github.com/bend-n/fimg.git
synced 2024-12-22 10:28:21 -06:00
more buffers
This commit is contained in:
parent
73237f541c
commit
e6f2a381e5
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue