The following functions return an option:
|
pub fn usb_bus(&self) -> Option<u8> { |
|
// TODO: Why is this an option? |
|
Some(self.0.usb_bus) |
|
} |
|
pub fn usb_addr(&self) -> Option<u8> { |
|
// TODO: Why is this an option? |
|
Some(self.0.usb_addr) |
|
} |
Is there a specific reason for this, or was it just an oversight/assumption when doing initial work for the BladeRF bindings?
The following functions return an option:
seify-bladerf/src/types/dev_info.rs
Lines 33 to 36 in 4e3568d
seify-bladerf/src/types/dev_info.rs
Lines 41 to 44 in 4e3568d
Is there a specific reason for this, or was it just an oversight/assumption when doing initial work for the BladeRF bindings?