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§
Sourcefn format_extension(&self, extension: impl Into<String>) -> This::Predicate
fn format_extension(&self, extension: impl Into<String>) -> This::Predicate
Defines formats stating one container or filename extension.
Sourcefn at_most(&self, key: impl Into<String>, value: f64) -> This::Predicate
fn at_most(&self, key: impl Into<String>, value: f64) -> This::Predicate
Defines formats whose observation is no greater than the stated number.
Sourcefn at_least(&self, key: impl Into<String>, value: f64) -> This::Predicate
fn at_least(&self, key: impl Into<String>, value: f64) -> This::Predicate
Defines formats whose observation is no smaller than the stated number.
Sourcefn exactly(&self, key: impl Into<String>, value: f64) -> This::Predicate
fn exactly(&self, key: impl Into<String>, value: f64) -> This::Predicate
Defines formats whose observation equals the stated number.
Sourcefn less_than(&self, key: impl Into<String>, value: f64) -> This::Predicate
fn less_than(&self, key: impl Into<String>, value: f64) -> This::Predicate
Defines formats whose observation is smaller than the stated number.
Sourcefn greater_than(&self, key: impl Into<String>, value: f64) -> This::Predicate
fn greater_than(&self, key: impl Into<String>, value: f64) -> This::Predicate
Defines formats whose observation is greater than the stated number.
Sourcefn progressive_format(&self) -> This::Predicate
fn progressive_format(&self) -> This::Predicate
Defines formats containing both audio and video.
Sourcefn audio_only_format(&self) -> This::Predicate
fn audio_only_format(&self) -> This::Predicate
Defines formats containing audio and no video.
Sourcefn video_only_format(&self) -> This::Predicate
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§
impl<This> FormatPredicateExt<This> for Thiswhere
This: FormatPredicateAlg,
Derives named and comparative predicates from primitive observation construction.