[−][src]Struct rust_rocket::player::RocketPlayer
A player for tracks dumped by
RocketClient::save_tracks
.
Examples
let client = RocketClient::new().unwrap(); // ... // Run the demo and edit your sync tracks, then call save_tracks // ... let tracks = client.save_tracks(); // ... // Serialize tracks to a file (see examples/edit.rs) // And deserialize from a file in your release build (examples/play.rs) // ... let player = RocketPlayer::new(tracks); println!("Value at row 123: {}", player.get_track("test").unwrap().get_value(123.));
Implementations
impl RocketPlayer
[src]
pub fn new(tracks: Vec<Track>) -> Self
[src]
Constructs a RocketPlayer
from Track
s.
pub fn get_track(&self, name: &str) -> Option<&Track>
[src]
Get track by name.
Auto Trait Implementations
impl RefUnwindSafe for RocketPlayer
[src]
impl Send for RocketPlayer
[src]
impl Sync for RocketPlayer
[src]
impl Unpin for RocketPlayer
[src]
impl UnwindSafe for RocketPlayer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,