Skip to main content

FormatSelectionProgramExt

Trait FormatSelectionProgramExt 

Source
pub trait FormatSelectionProgramExt<This, Predicate>
where This: FormatPredicateAlg<Predicate = Predicate> + FormatSelectionAlg<Predicate = Predicate>,
{ // Required methods fn best_progressive_format(&self) -> This::Selection; fn preferred_progressive_format( &self, id: impl Into<String>, ) -> This::Selection; }
Expand description

Derives common selection programs by equating predicate carriers.

Required Methods§

Source

fn best_progressive_format(&self) -> This::Selection

Defines the most preferred progressive format.

Source

fn preferred_progressive_format(&self, id: impl Into<String>) -> This::Selection

Defines an exact format with a progressive fallback.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<This, Predicate> FormatSelectionProgramExt<This, Predicate> for This
where This: FormatPredicateAlg<Predicate = Predicate> + FormatSelectionAlg<Predicate = Predicate>,

Derives common selection programs by equating predicate carriers.