devela::_dep::symphonia::core::probe

Trait QueryDescriptor

pub trait QueryDescriptor {
    // Required methods
    fn query() -> &'static [Descriptor] ;
    fn score(context: &[u8]) -> u8 ;
}
Available on crate feature dep_symphonia only.
Expand description

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

Required Methods§

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

Returns a list of descriptors.

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.

Implementations on Foreign Types§

§

impl QueryDescriptor for Id3v2Reader

§

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

§

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

Implementors§