[][src]Struct rust_rocket::track::Track

pub struct Track { /* fields omitted */ }

The Track Type. This is a collection of Keys with a name.

Implementations

impl Track[src]

pub fn new<S: Into<String>>(name: S) -> Track[src]

Construct a new Track with a name.

pub fn get_name(&self) -> &str[src]

Get the name of the track.

pub fn set_key(&mut self, key: Key)[src]

Insert or update a key on a track.

pub fn delete_key(&mut self, row: u32)[src]

Delete a key from a track.

If a key does not exist this will do nothing.

pub fn get_value(&self, row: f32) -> f32[src]

Get a value based on a row.

The row can be between two integers. This will perform the required interpolation.

Trait Implementations

impl Clone for Track[src]

impl Debug for Track[src]

impl<'de> Deserialize<'de> for Track[src]

impl Serialize for Track[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.