pub fn direction_of(&self, pin: u8) -> Result<Direction> {
        self.io.get(&pin)
            .map(|&(dir, _sig)| dir )
            .ok_or(IOError::UndefinedPin(pin))
    }
/// Returns the direction of the pin.
///
/// Returns an error if the pin is not defined.
Returns the direction of the pin.
Returns an error if the pin is not defined.
Returns the direction of the pin . Returns an error if the pin is not defined .
pub fn direction_of(&self, pin: u8) -> Result<Direction> {
        self.io.get(&pin)
            .map(|&(dir, _sig)| dir )
            .ok_or(IOError::UndefinedPin(pin))
    }
pub fn direction_of ( & self , pin : u8 ) -> Result < Direction > { self . io . get ( & pin ) . map ( | & ( dir , _sig ) | dir ) . ok_or ( IOError :: UndefinedPin ( pin ) ) }
Returns the direction of the pin.
Returns the direction of the pin .
&self
pin
u8
&self
pin
u8