#[repr(C)]pub struct ColorMatch {
pub m_colorsToMatch: vector,
pub m_confidenceLevel: f64,
}Expand description
REV Robotics Color Sensor V3.
This class allows access to a REV Robotics color sensor V3 on an I2C bus.
Fields§
§m_colorsToMatch: vector§m_confidenceLevel: f64Implementations§
Source§impl ColorMatch
impl ColorMatch
pub unsafe fn AddColorMatch(&mut self, color: *const Color)
pub unsafe fn SetConfidenceThreshold(&mut self, confidence: f64)
pub unsafe fn MatchColor(&mut self, colorToMatch: *const Color) -> optional
pub unsafe fn MatchColor1( &mut self, colorToMatch: *const Color, confidence: *mut f64, ) -> optional
pub unsafe fn MatchClosestColor( &mut self, colorToMatch: *const Color, confidence: *mut f64, ) -> Color
pub unsafe fn new() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorMatch
impl RefUnwindSafe for ColorMatch
impl Send for ColorMatch
impl Sync for ColorMatch
impl Unpin for ColorMatch
impl UnwindSafe for ColorMatch
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