pub struct CachedFeatures {
pub key: String,
pub features: Features,
pub note_onsets: Vec<usize>,
pub n_samples: usize,
}Expand description
Everything featurize produces except the samples — the persistable
unit, and what a memo hit returns.
Fields§
§key: StringContent address (render_key).
features: FeaturesThe extracted features, byte-for-byte what featurize returned.
note_onsets: Vec<usize>Sample index where each note’s gate opened.
n_samples: usizeLength of the render in samples.
Trait Implementations§
Source§impl Clone for CachedFeatures
impl Clone for CachedFeatures
Source§fn clone(&self) -> CachedFeatures
fn clone(&self) -> CachedFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedFeatures
impl Debug for CachedFeatures
Source§impl<'de> Deserialize<'de> for CachedFeatures
impl<'de> Deserialize<'de> for CachedFeatures
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CachedFeatures
impl RefUnwindSafe for CachedFeatures
impl Send for CachedFeatures
impl Sync for CachedFeatures
impl Unpin for CachedFeatures
impl UnsafeUnpin for CachedFeatures
impl UnwindSafe for CachedFeatures
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