mirror of
https://codeberg.org/kaasboteram/zig-iterating.git
synced 2025-12-15 09:43:14 +01:00
Add size hint for Empty
This commit is contained in:
parent
a6fda0d9b2
commit
21638848c5
1 changed files with 4 additions and 0 deletions
|
|
@ -433,5 +433,9 @@ pub fn Empty(comptime T: type) type {
|
|||
pub fn next(_: Empty(T)) ?Item {
|
||||
return null;
|
||||
}
|
||||
|
||||
pub fn sizeHint(_: *const Empty(T)) usize {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue