that should do the job
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
This commit is contained in:
parent
5746fba565
commit
6f6ad5cafd
@ -78,6 +78,12 @@ impl ValidatorU16Id for u16 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ValidatorU16Id for &u16 {
|
||||||
|
fn validate(&self, id: u16) -> bool {
|
||||||
|
id == **self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl ValidatorU16Id for [u16] {
|
impl ValidatorU16Id for [u16] {
|
||||||
fn validate(&self, id: u16) -> bool {
|
fn validate(&self, id: u16) -> bool {
|
||||||
self.binary_search(&id).is_ok()
|
self.binary_search(&id).is_ok()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user