Struct rmididings::proc::osc::OscAddrFilter[][src]

pub struct OscAddrFilter(pub &'static str);
Expand description

Filter on OSC address

Examples

let filter = OscAddrFilter(&"/foo");

let ev1 = OscEvent(0, "/foo".to_string(), vec![]);
let ev2 = OscEvent(0, "/bar".to_string(), vec![]);

let mut evs = EventStream::from(vec![&ev1, &ev2]);
filter.run(&mut evs);
assert_eq!(evs, ev1);

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.