Struct rust_rocket::track::Track
[−]
[src]
pub struct Track { /* fields omitted */ }
The Track
Type. This is a collection of Key
s with a name.
Methods
impl Track
[src]
fn new<S: Into<String>>(name: S) -> Track
Construct a new Track with a name.
fn get_name(&self) -> &str
Get the name of the track.
fn set_key(&mut self, key: Key)
Insert or update a key on a track.
fn delete_key(&mut self, row: u32)
Delete a key from a track.
If a key does not exist this will do nothing.
fn get_value(&self, row: f32) -> f32
Get a value based on a row.
The row can be between two integers. This will perform the required interpolation.