pub struct SnippetsData { /* private fields */ }
Implementations§
Source§impl SnippetsData
impl SnippetsData
pub fn with_new_snippet(&self, snip: SnippetData) -> (SnippetsData, SnippetId)
pub fn with_replacement_snippet( &self, id: SnippetId, new: SnippetData, ) -> SnippetsData
pub fn without_snippet(&self, id: SnippetId) -> SnippetsData
pub fn with_new_lerp( &self, id: SnippetId, lerp_from: Time, lerp_to: Time, ) -> SnippetsData
pub fn with_truncated_snippet(&self, id: SnippetId, time: Time) -> SnippetsData
pub fn snippet(&self, id: SnippetId) -> &SnippetData
pub fn snippets(&self) -> impl Iterator<Item = (SnippetId, &SnippetData)>
pub fn last_draw_time(&self) -> Time
pub fn create_cursor(&self, time: Time) -> SnippetsCursor
pub fn render_changes( &self, ctx: &mut impl RenderContext, cursor: &mut SnippetsCursor, new_time: Time, )
Trait Implementations§
Source§impl Clone for SnippetsData
impl Clone for SnippetsData
Source§fn clone(&self) -> SnippetsData
fn clone(&self) -> SnippetsData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Data for SnippetsData
impl Data for SnippetsData
Source§impl Default for SnippetsData
impl Default for SnippetsData
Source§fn default() -> SnippetsData
fn default() -> SnippetsData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnippetsData
impl<'de> Deserialize<'de> for SnippetsData
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<SnippetsData, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<SnippetsData, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SnippetsData
impl RefUnwindSafe for SnippetsData
impl Send for SnippetsData
impl Sync for SnippetsData
impl Unpin for SnippetsData
impl UnwindSafe for SnippetsData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more