fn next(&mut self) -> Option<sensor_ptr> {
        //  Based on last iteration, find the next sensor with matching device name.
        let sensor = mgr_find_next_bydevname(&self.devname, self.previous)
            .expect("find sensor");
        if sensor.is_null() { None }  //  If sensor not found, return None
        else {
            //  If sensor found, remember this sensor for next iteration.
            self.previous = sensor;
            Some(sensor)  //  Return the sensor
        }
    }
/// Return the next sensor that matches the device name    
Return the next sensor that matches the device name
Return the next sensor that matches the device name
fn next(&mut self) -> Option<sensor_ptr> {
        //  Based on last iteration, find the next sensor with matching device name.
        let sensor = mgr_find_next_bydevname(&self.devname, self.previous)
            .expect("find sensor");
        if sensor.is_null() { None }  //  If sensor not found, return None
        else {
            //  If sensor found, remember this sensor for next iteration.
            self.previous = sensor;
            Some(sensor)  //  Return the sensor
        }
    }
fn next ( & mut self ) -> Option < sensor_ptr > { //  Based on last iteration, find the next sensor with matching device name. let sensor = mgr_find_next_bydevname ( & self . devname , self . previous ) . expect ( " " ) ; if sensor . is_null ( ) { None } //  If sensor not found, return None else { //  If sensor found, remember this sensor for next iteration. self . previous = sensor ; Some ( sensor ) //  Return the sensor } }
Return the next sensor that matches the device name
Return the next sensor that matches the device name
&mut self
&mut self