pub trait WeightSource {
// Required method
fn take(
&mut self,
key: &str,
transpose: bool,
) -> Result<(Vec<f32>, Vec<usize>)>;
// Provided method
fn has(&self, key: &str) -> bool { ... }
}Expand description
Abstract weight source for block emission. Keeps rlx-flow independent of
safetensors / GGUF file formats.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".