pub fn has_pins<T>(&self, pins: T) -> Result<()> where
        T: IntoIterator<Item = u8>
    {
        for pin_no in pins {
            if !self.has_pin(pin_no) {
                return Err(IOError::UndefinedPin(pin_no));
            }
        }

        Ok(())
    }
/// Returns Ok(()) if the device definition defines all the given pins.
Returns Ok(()) if the device definition defines all the given pins.
Returns Ok (( )) if the device definition defines all the given pins .
pub fn has_pins<T>(&self, pins: T) -> Result<()> where
        T: IntoIterator<Item = u8>
    {
        for pin_no in pins {
            if !self.has_pin(pin_no) {
                return Err(IOError::UndefinedPin(pin_no));
            }
        }
        Ok(())
    }
pub fn has_pins < T > ( & self , pins : T ) -> Result < ( ) > where T : IntoIterator < Item = u8 > { for pin_no in pins { if ! self . has_pin ( pin_no ) { return Err ( IOError :: UndefinedPin ( pin_no ) ) ; } } Ok ( ( ) ) }
Returns Ok(()) if the device definition defines all the given pins.
Returns Ok (( )) if the device definition defines all the given pins .
&self
pins
T
&self
pins
T