symphonia_core::probe

Trait QueryDescriptor

Source
pub trait QueryDescriptor {
    // Required methods
    fn query() -> &'static [Descriptor];
    fn score(context: &[u8]) -> u8;
}
Expand description

The QueryDescriptor trait indicates that the implementer may be registered and capable of probing.

Required Methods§

Source

fn query() -> &'static [Descriptor]

Returns a list of descriptors.

Source

fn score(context: &[u8]) -> u8

Using the provided context buffer, score calculate and returns a value between 0 and 255 indicating the confidence of the reader in decoding or parsing the source stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§