MCPcopy Create free account
hub / github.com/cosdata/cosdata / from

Method from

src/models/common.rs:328–334  ·  view source on GitHub ↗
(value: QuantizationError)

Source from the content-addressed store, hash-verified

326
327impl From<QuantizationError> for WaCustomError {
328 fn from(value: QuantizationError) -> Self {
329 match value {
330 QuantizationError::InvalidInput(_) => WaCustomError::InvalidParams,
331 QuantizationError::TrainingFailed => WaCustomError::TrainingFailed,
332 QuantizationError::Untrained => WaCustomError::Untrained,
333 }
334 }
335}
336
337impl From<DistanceError> for WaCustomError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected