that should do the job
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Robin Müller 2024-04-14 12:34:23 +02:00
parent 5746fba565
commit 6f6ad5cafd
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -78,6 +78,12 @@ impl ValidatorU16Id for u16 {
}
}
impl ValidatorU16Id for &u16 {
fn validate(&self, id: u16) -> bool {
id == **self
}
}
impl ValidatorU16Id for [u16] {
fn validate(&self, id: u16) -> bool {
self.binary_search(&id).is_ok()