pub struct SurfaceInfo {
pub surface_type: Option<String>,
pub friction: Option<f64>,
pub incline_deg: Option<f64>,
pub is_wet: Option<bool>,
pub is_slippery: Option<bool>,
pub roughness: Option<f64>,
pub confidence: Option<f64>,
}Expand description
Surface detection information.
Fields§
§surface_type: Option<String>Detected surface type
friction: Option<f64>Surface friction estimate (0-1)
incline_deg: Option<f64>Incline (degrees)
is_wet: Option<bool>Whether wet
is_slippery: Option<bool>Whether slippery
roughness: Option<f64>Roughness estimate
confidence: Option<f64>Confidence (0-1)
Trait Implementations§
Source§impl Clone for SurfaceInfo
impl Clone for SurfaceInfo
Source§fn clone(&self) -> SurfaceInfo
fn clone(&self) -> SurfaceInfo
Returns a duplicate 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 SurfaceInfo
impl Debug for SurfaceInfo
Source§impl Default for SurfaceInfo
impl Default for SurfaceInfo
Source§fn default() -> SurfaceInfo
fn default() -> SurfaceInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SurfaceInfo
impl<'de> Deserialize<'de> for SurfaceInfo
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 Serialize for SurfaceInfo
impl Serialize for SurfaceInfo
Auto Trait Implementations§
impl Freeze for SurfaceInfo
impl RefUnwindSafe for SurfaceInfo
impl Send for SurfaceInfo
impl Sync for SurfaceInfo
impl Unpin for SurfaceInfo
impl UnwindSafe for SurfaceInfo
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