pub struct FilterPipeline {
pub geometric: FilterOp,
pub encoding: EncodingOps,
}Expand description
One end-to-end filter pipeline: an optional resize + optional
encoding hints. Parsed from a pipe-separated spec like
fill-300x200|format-webp|quality-75|bgcolor-fff. The first
segment must be a resize op (fill/max/width/height);
remaining segments classify into EncodingOps.
Backward compat: bare specs without a | (e.g. fill-300x200)
parse to a pipeline with no encoding hints, mirroring the v0.2
behavior.
Fields§
§geometric: FilterOp§encoding: EncodingOpsImplementations§
Source§impl FilterPipeline
impl FilterPipeline
Sourcepub fn parse(raw: &str) -> Result<Self, FilterError>
pub fn parse(raw: &str) -> Result<Self, FilterError>
Parse a pipe-separated spec into a pipeline. The first segment must be a resize op; subsequent segments encode hints.
Trait Implementations§
Source§impl Clone for FilterPipeline
impl Clone for FilterPipeline
impl Copy for FilterPipeline
Source§impl Debug for FilterPipeline
impl Debug for FilterPipeline
Source§impl PartialEq for FilterPipeline
impl PartialEq for FilterPipeline
impl StructuralPartialEq for FilterPipeline
Auto Trait Implementations§
impl Forget for FilterPipeline
impl Freeze for FilterPipeline
impl RefUnwindSafe for FilterPipeline
impl Send for FilterPipeline
impl Sync for FilterPipeline
impl Unpin for FilterPipeline
impl UnsafeUnpin for FilterPipeline
impl UnwindSafe for FilterPipeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.