IntoAddrAndArgs

Trait IntoAddrAndArgs 

Source
pub trait IntoAddrAndArgs<'a, B> {
    // Required method
    fn as_addr_frag_and_args(&self) -> (String, B);
}
Expand description

Converts an to a Monome method argument to a OSC address fragment and suitable OscType, performing an eventual conversion.

Required Methods§

Source

fn as_addr_frag_and_args(&self) -> (String, B)

Converts an to a Monome method argument to a OSC address fragment and suitable OscType, performing an eventual conversion.

Implementations on Foreign Types§

Source§

impl<'a> IntoAddrAndArgs<'a, OscType> for bool

Used to make an on/off call, converts to 0 or 1.

Source§

impl<'a> IntoAddrAndArgs<'a, OscType> for i32

Used to make a call with an intensity value, adds the "level/" portion in the address.

Source§

impl<'a> IntoAddrAndArgs<'a, Vec<OscType>> for &'a [bool; 64]

Used to convert vectors of bools for on/off calls, packs into a 8-bit integer mask.

Source§

impl<'a> IntoAddrAndArgs<'a, Vec<OscType>> for &'a [u8; 8]

Source§

impl<'a> IntoAddrAndArgs<'a, Vec<OscType>> for &'a [u8; 64]

Source§

impl<'a> IntoAddrAndArgs<'a, Vec<OscType>> for u8

Implementors§