Struct bluerobotics_ping::ping1d::RangeStruct
source · pub struct RangeStruct {
pub scan_start: u32,
pub scan_length: u32,
}Expand description
The scan range for acoustic measurements. Measurements returned by the device will lie in the range (scan_start, scan_start + scan_length).
Fields§
§scan_start: u32The beginning of the scan range in mm from the transducer.
scan_length: u32The length of the scan range.
Trait Implementations§
source§impl Clone for RangeStruct
impl Clone for RangeStruct
source§fn clone(&self) -> RangeStruct
fn clone(&self) -> RangeStruct
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RangeStruct
impl Debug for RangeStruct
source§impl Default for RangeStruct
impl Default for RangeStruct
source§fn default() -> RangeStruct
fn default() -> RangeStruct
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RangeStruct
impl<'de> Deserialize<'de> for RangeStruct
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl DeserializePayload for RangeStruct
impl DeserializePayload for RangeStruct
fn deserialize(payload: &[u8]) -> Self
source§impl MessageInfo for RangeStruct
impl MessageInfo for RangeStruct
source§impl PartialEq for RangeStruct
impl PartialEq for RangeStruct
source§impl Serialize for RangeStruct
impl Serialize for RangeStruct
source§impl SerializePayload for RangeStruct
impl SerializePayload for RangeStruct
impl StructuralPartialEq for RangeStruct
Auto Trait Implementations§
impl Freeze for RangeStruct
impl RefUnwindSafe for RangeStruct
impl Send for RangeStruct
impl Sync for RangeStruct
impl Unpin for RangeStruct
impl UnwindSafe for RangeStruct
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)