pub fn row<'a, A>(&mut self, x_offset: i32, y: i32, leds: &A)
    where
        A: IntoAddrAndArgs<'a, Vec<OscType>>,
    {
        if self.device_type != MonomeDeviceType::Grid {
            error!("Called grid method on something that is not an grid.");
            return;
        }
        let (frag, arg) = leds.as_addr_frag_and_args();

        let mut args = Vec::with_capacity((2 + arg.len()) as usize);

        args.push(OscType::Int(x_offset));
        args.push(OscType::Int(y));
        args.append(&mut arg.to_vec());

        self.send(&format!("/grid/led/{}row", frag), args);
    }
/// Set a full row of a grid, using one or more 8-bit mask(s), or a vector containing booleans
/// or integer intensity values.
///
/// # Arguments
///
/// * `x_offset` - at which 8 button offset to start setting the leds. This is always 0 for a
/// 64, and can be 8 for a 128 or 256.
/// * `y` - which row to set, 0-indexed. This must be lower than the number of rows of the
/// device.
/// * `leds` - either the list of masks that determine the pattern to light on for a particular
/// 8 led long section, or a vector of either int or bool, one element for each led.
///
/// # Example
///
/// On a monome 128, light up every other led of the right half of the 3rd  row:
///
/// ```no_run
/// # use monome::Monome;
/// let mut monome = Monome::new("/prefix").unwrap();
/// monome.row(8 /* rightmost half */,
///            2 /* 3rd row, 0 indexed */,
///            &0b01010101u8 /* every other led, 85 in decimal */);
/// ```
Set a full row of a grid, using one or more 8-bit mask(s), or a vector containing booleans
or integer intensity values.
Set a full row of a grid using one or more 8 - bit mask ( s ) or a vector containing booleans or integer intensity values .
pub fn row<'a, A>(&mut self, x_offset: i32, y: i32, leds: &A)
    where
        A: IntoAddrAndArgs<'a, Vec<OscType>>,
    {
        if self.device_type != MonomeDeviceType::Grid {
            error!("Called grid method on something that is not an grid.");
            return;
        }
        let (frag, arg) = leds.as_addr_frag_and_args();
        let mut args = Vec::with_capacity((2 + arg.len()) as usize);
        args.push(OscType::Int(x_offset));
        args.push(OscType::Int(y));
        args.append(&mut arg.to_vec());
        self.send(&format!("/grid/led/{}row", frag), args);
    }
pub fn row < ' a , A > ( & mut self , x_offset : i32 , y : i32 , leds : & A ) where A : IntoAddrAndArgs < ' a , Vec < OscType > > , { if self . device_type != MonomeDeviceType :: Grid { error ! ( " " ) ; return ; } let ( frag , arg ) = leds . as_addr_frag_and_args ( ) ; let mut args = Vec :: with_capacity ( ( 2 + arg . len ( ) ) as usize ) ; args . push ( OscType :: Int ( x_offset ) ) ; args . push ( OscType :: Int ( y ) ) ; args . append ( & mut arg . to_vec ( ) ) ; self . send ( & format ! ( " " frag ) , args ) ; }
Set a full row of a grid, using one or more 8-bit mask(s), or a vector containing booleans
or integer intensity values.
Set a full row of a grid using one or more 8 - bit mask ( s ) or a vector containing booleans or integer intensity values .
&mut self
x_offset
i32
y
i32
leds
&A
&mut self
x_offset
i32
y
i32
leds
&A
example
On a monome 128, light up every other led of the right half of the 3rd  row.


On a monome 128 light up every other led of the right half of the 3rd row .
use monome::monome;
let mut monome = Monome::new("/prefix").unwrap();
monome.row(8  rightmost half */,
2  3rd row, 0 indexed */,
&0b01010101u8  every other led, 85 in decimal */);
```
let mut monome = Monome :: new ( " / prefix " ) . unwrap () ; monome . row ( 8 rightmost half * / 2 3rd row 0 indexed * / &0b01010101u8 every other led 85 in decimal * / ) ; ` ` `