Skip to main content

FormatPredicateExt

Trait FormatPredicateExt 

Source
pub trait FormatPredicateExt<This>
where This: FormatPredicateAlg,
{ // Required methods fn has_audio(&self) -> This::Predicate; fn has_video(&self) -> This::Predicate; fn format_extension(&self, extension: impl Into<String>) -> This::Predicate; fn at_most(&self, key: impl Into<String>, value: f64) -> This::Predicate; fn at_least(&self, key: impl Into<String>, value: f64) -> This::Predicate; fn exactly(&self, key: impl Into<String>, value: f64) -> This::Predicate; fn less_than(&self, key: impl Into<String>, value: f64) -> This::Predicate; fn greater_than( &self, key: impl Into<String>, value: f64, ) -> This::Predicate; fn progressive_format(&self) -> This::Predicate; fn audio_only_format(&self) -> This::Predicate; fn video_only_format(&self) -> This::Predicate; }
Expand description

Derives named and comparative predicates from primitive observation construction.

Required Methods§

Source

fn has_audio(&self) -> This::Predicate

Defines formats containing audio.

Source

fn has_video(&self) -> This::Predicate

Defines formats containing video.

Source

fn format_extension(&self, extension: impl Into<String>) -> This::Predicate

Defines formats stating one container or filename extension.

Source

fn at_most(&self, key: impl Into<String>, value: f64) -> This::Predicate

Defines formats whose observation is no greater than the stated number.

Source

fn at_least(&self, key: impl Into<String>, value: f64) -> This::Predicate

Defines formats whose observation is no smaller than the stated number.

Source

fn exactly(&self, key: impl Into<String>, value: f64) -> This::Predicate

Defines formats whose observation equals the stated number.

Source

fn less_than(&self, key: impl Into<String>, value: f64) -> This::Predicate

Defines formats whose observation is smaller than the stated number.

Source

fn greater_than(&self, key: impl Into<String>, value: f64) -> This::Predicate

Defines formats whose observation is greater than the stated number.

Source

fn progressive_format(&self) -> This::Predicate

Defines formats containing both audio and video.

Source

fn audio_only_format(&self) -> This::Predicate

Defines formats containing audio and no video.

Source

fn video_only_format(&self) -> This::Predicate

Defines formats containing video and no audio.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<This> FormatPredicateExt<This> for This
where This: FormatPredicateAlg,

Derives named and comparative predicates from primitive observation construction.