[−][src]Macro ev3dev_lang_rust::findable
Helper to create a new Device instance.
Generates get(), find() and list() methods. Therefore are 3 parameters required:
class_name: &strdriver_name: &strport: dyn ev3dev_lang_rust::Motor
Example:
ⓘThis example is not tested
#[derive(Debug, Clone, Device)] pub struct LargeMotor { driver: Driver, } impl LargeMotor { findable!("tacho-motor", "lego-ev3-l-motor", MotorPort); tacho_motor!(); }