pub fn new<S>(prefix: S) -> Result<Monome, String>
    where
        S: Into<String>,
    {
        Monome::new_with_port(prefix, SERIALOSC_PORT)
    }
/// Sets up the "first" monome device, with a particular prefix. When multiple devices are
/// plugged in, it's unclear which one is activated, however this is rare.
///
/// # Arguments
///
/// * `prefix` - the prefix to use for this device and this application
///
/// # Example
///
/// Set up a monome, with a prefix of "/prefix":
///
/// ```no_run
/// # use monome::Monome;
/// let m = Monome::new("/prefix");
///
/// match m {
///   Ok(monome) => {
///     println!("{:?}", monome);
///   }
///   Err(s) => {
///     println!("Could not setup the monome: {}", s);
///   }
/// }
/// ```
Sets up the "first" monome device, with a particular prefix. When multiple devices are
plugged in, it's unclear which one is activated, however this is rare.
Sets up the " first " monome device with a particular prefix . When multiple devices are plugged in it ' s unclear which one is activated however this is rare .
pub fn new<S>(prefix: S) -> Result<Monome, String>
    where
        S: Into<String>,
    {
        Monome::new_with_port(prefix, SERIALOSC_PORT)
    }
pub fn new < S > ( prefix : S ) -> Result < Monome , String > where S : Into < String > , { Monome :: new_with_port ( prefix , SERIALOSC_PORT ) }
Sets up the "first" monome device, with a particular prefix.
Sets up the " first " monome device with a particular prefix .
prefix
S
prefix
S
example
Set up a monome, with a prefix of "/prefix".


Set up a monome with a prefix of " / prefix " .
use monome::monome;
let m = Monome::new("/prefix").


let m = Monome :: new ( " / prefix " ) .