Struct screech::core::DynamicTracker[][src]

pub struct DynamicTracker { /* fields omitted */ }
Expand description

Basic dynamically sized tracker for the creation of unique ids and to keep track of signals belonging to a certain id

use screech::traits::Source;
use screech::core::DynamicTracker;
use screech::basic::{Track, Oscillator};

let mut tracker = DynamicTracker::new();
let osc = Oscillator::new(&mut tracker);
let track = Track::new(&mut tracker);

// the resulting id is irrelevant as long as it is unique
assert_eq!(osc.get_source_id() != track.get_source_id(), true);

Implementations

create a new tracker

Trait Implementations

Return a unique ID

clear source id for reuse

get signal for id

set signal for id

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.