[−][src]Struct rust_rocket::track::Track
The Track
Type. This is a collection of Key
s 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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Track
[src]
Auto Trait Implementations
impl RefUnwindSafe for Track
[src]
impl Send for Track
[src]
impl Sync for Track
[src]
impl Unpin for Track
[src]
impl UnwindSafe for Track
[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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,