pub struct Filter { /* private fields */ }
Expand description
The main entry point. Call Filter::new
Implementations§
source§impl Filter
impl Filter
sourcepub fn new() -> Self
pub fn new() -> Self
Create new filter instance. Call Filter::filter
on it.
sourcepub fn filter<Read: Read, Write: Write>(
&self,
source: Read,
destination: Write
) -> Result<(), FError>
pub fn filter<Read: Read, Write: Write>( &self, source: Read, destination: Write ) -> Result<(), FError>
Read an SVG image from the source
and write a filtered image to the destination
.
sourcepub fn set_data_url_filter(
&mut self,
filter: impl Fn(&DataUrl<'_>) -> DataUrlFilterResult + 'static
)
pub fn set_data_url_filter( &mut self, filter: impl Fn(&DataUrl<'_>) -> DataUrlFilterResult + 'static )
This function will be called for every data:
URL encountered in embedded images.
This callback is not allowed to refer to its environment. Use Arc<Mutex<_>>
to modify any shared state.
Auto Trait Implementations§
impl !RefUnwindSafe for Filter
impl !Send for Filter
impl !Sync for Filter
impl Unpin for Filter
impl !UnwindSafe for Filter
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