[][src]Struct scribble_curves::SnippetsData

pub struct SnippetsData { /* fields omitted */ }

Implementations

impl SnippetsData[src]

pub fn with_new_snippet(&self, snip: SnippetData) -> (SnippetsData, SnippetId)[src]

pub fn with_replacement_snippet(
    &self,
    id: SnippetId,
    new: SnippetData
) -> SnippetsData
[src]

pub fn without_snippet(&self, id: SnippetId) -> SnippetsData[src]

pub fn with_new_lerp(
    &self,
    id: SnippetId,
    lerp_from: Time,
    lerp_to: Time
) -> SnippetsData
[src]

pub fn with_truncated_snippet(&self, id: SnippetId, time: Time) -> SnippetsData[src]

pub fn snippet(&self, id: SnippetId) -> &SnippetData[src]

pub fn snippets(&self) -> impl Iterator<Item = (SnippetId, &SnippetData)>[src]

pub fn last_draw_time(&self) -> Time[src]

pub fn create_cursor(&self, time: Time) -> SnippetsCursor[src]

pub fn render_changes(
    &self,
    ctx: &mut impl RenderContext,
    cursor: &mut SnippetsCursor,
    new_time: Time
)
[src]

Trait Implementations

impl Clone for SnippetsData[src]

impl Data for SnippetsData[src]

impl Default for SnippetsData[src]

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

impl Serialize for SnippetsData[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> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.