pub fn ports<I>(mut self, ports: I, mode: PortMode) -> Self
    where
        I: IntoIterator<Item = u8>,
    {
        for port in ports {
            self.set_port(port, mode);
        }
        self
    }
/// Set the port mode of a sequence of GPIO pins to the given `PortMode`. `ports` must yield
/// values corresponding to port numbers as specified in the device datasheet, in the range
/// `4..=31`. All of the ports will be set to mode `mode`.
Set the port mode of a sequence of GPIO pins to the given `PortMode`. `ports` must yield
values corresponding to port numbers as specified in the device datasheet, in the range
`4..=31`. All of the ports will be set to mode `mode`.
Set the port mode of a sequence of GPIO pins to the given ` PortMode ` . ` ports ` must yield values corresponding to port numbers as specified in the device datasheet in the range ` 4 .. = 31 ` . All of the ports will be set to mode ` mode ` .
pub fn ports<I>(mut self, ports: I, mode: PortMode) -> Self
    where
        I: IntoIterator<Item = u8>,
    {
        for port in ports {
            self.set_port(port, mode);
        }
        self
    }
pub fn ports < I > ( mut self , ports : I , mode : PortMode ) -> Self where I : IntoIterator < Item = u8 > , { for port in ports { self . set_port ( port , mode ) ; } self }
Set the port mode of a sequence of GPIO pins to the given `PortMode`.
Set the port mode of a sequence of GPIO pins to the given ` PortMode ` .
mut self
ports
I
mode
PortMode
mut self
ports
I
mode
PortMode