Struct scribl_curves::DrawSnippets [−][src]
A collection of DrawSnippet
s, which can be accessed using their id.
This struct implements druid::Data
. In particular, it is cheap to clone: most of the actual
data lives behind shared references.
Implementations
impl DrawSnippets
[src]
pub fn with_new_snippet(
&self,
snip: DrawSnippet
) -> (DrawSnippets, DrawSnippetId)
[src]
&self,
snip: DrawSnippet
) -> (DrawSnippets, DrawSnippetId)
pub fn with_replacement_snippet(
&self,
id: DrawSnippetId,
new: DrawSnippet
) -> DrawSnippets
[src]
&self,
id: DrawSnippetId,
new: DrawSnippet
) -> DrawSnippets
pub fn without_snippet(&self, id: DrawSnippetId) -> DrawSnippets
[src]
pub fn with_new_lerp(
&self,
id: DrawSnippetId,
lerp_from: Time,
lerp_to: Time
) -> DrawSnippets
[src]
&self,
id: DrawSnippetId,
lerp_from: Time,
lerp_to: Time
) -> DrawSnippets
pub fn with_truncated_snippet(
&self,
id: DrawSnippetId,
time: Time
) -> DrawSnippets
[src]
&self,
id: DrawSnippetId,
time: Time
) -> DrawSnippets
pub fn with_shifted_snippet(
&self,
id: DrawSnippetId,
shift: TimeDiff
) -> DrawSnippets
[src]
&self,
id: DrawSnippetId,
shift: TimeDiff
) -> DrawSnippets
pub fn snippet(&self, id: DrawSnippetId) -> &DrawSnippet
[src]
pub fn snippets(&self) -> impl Iterator<Item = (DrawSnippetId, &DrawSnippet)>
[src]
pub fn last_draw_time(&self) -> Time
[src]
pub fn create_cursor(&self, time: Time) -> DrawCursor
[src]
Trait Implementations
impl Clone for DrawSnippets
[src]
fn clone(&self) -> DrawSnippets
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Data for DrawSnippets
[src]
impl Default for DrawSnippets
[src]
fn default() -> DrawSnippets
[src]
impl<'de> Deserialize<'de> for DrawSnippets
[src]
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<DrawSnippets, D::Error>
[src]
impl From<DrawSnippets> for DrawSnippets
[src]
fn from(data: DrawSnippets) -> DrawSnippets
[src]
impl Serialize for DrawSnippets
[src]
Auto Trait Implementations
impl RefUnwindSafe for DrawSnippets
[src]
impl Send for DrawSnippets
[src]
impl Sync for DrawSnippets
[src]
impl Unpin for DrawSnippets
[src]
impl UnwindSafe for DrawSnippets
[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> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,