pub struct PreFeaturized {
pub tree: PatchTree,
pub cached: CachedFeatures,
pub audition: Option<Arc<Audition>>,
}Expand description
A candidate whose render, vetting and featurization already happened — in a farm worker, or on the way back from transport.
It carries exactly what auracle_features::featurize_memo produces,
minus the work: the term, its CachedFeatures (content key, raw φ, vet
report, onsets, length), and optionally the audition buffer. The engine
folds one of these in with crate::Engine::absorb_prior or
crate::Engine::absorb_bank_entry, which apply the same dedupe,
standardization and admission rules the in-process path applies.
A failed vet has no PreFeaturized: it is None at the absorb site,
which is how a quarantined draw stays a normal outcome rather than an
error.
Fields§
§tree: PatchTreeThe term.
cached: CachedFeaturesEverything the featurization produced except the samples.
audition: Option<Arc<Audition>>The audition buffer, when the producer was asked for one and it survived transport. Absent is never a failure signal — φ is the product, audio is the option.
Implementations§
Source§impl PreFeaturized
impl PreFeaturized
Sourcepub fn render(
tree: PatchTree,
spec: &PhraseSpec,
want_audio: bool,
) -> Result<Self, FeaturizeError>
pub fn render( tree: PatchTree, spec: &PhraseSpec, want_audio: bool, ) -> Result<Self, FeaturizeError>
Render, vet and featurize one term without an crate::Engine —
the farm worker’s entire job.
Deliberately unmemoized: a farm worker is a pure function of its arguments and holds no state between jobs, which is what lets the engine treat any worker as interchangeable with any other (and with itself).
Trait Implementations§
Source§impl Clone for PreFeaturized
impl Clone for PreFeaturized
Source§fn clone(&self) -> PreFeaturized
fn clone(&self) -> PreFeaturized
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more