#[non_exhaustive]pub struct SvgRenderExtension {}Expand description
Image service extension that handlers SVG requests.
Trait Implementations§
Source§impl Default for SvgRenderExtension
impl Default for SvgRenderExtension
Source§fn default() -> SvgRenderExtension
fn default() -> SvgRenderExtension
Returns the “default value” for a type. Read more
Source§impl ImagesExtension for SvgRenderExtension
impl ImagesExtension for SvgRenderExtension
Source§fn image_data(
&mut self,
max_decoded_len: ByteLength,
_key: &ImageHash,
data: &IpcBytes,
format: &ImageDataFormat,
options: &ImageOptions,
) -> Option<ImageVar>
fn image_data( &mut self, max_decoded_len: ByteLength, _key: &ImageHash, data: &IpcBytes, format: &ImageDataFormat, options: &ImageOptions, ) -> Option<ImageVar>
Image data loaded. Read more
Source§fn available_formats(&self, formats: &mut Vec<ImageFormat>)
fn available_formats(&self, formats: &mut Vec<ImageFormat>)
Add or remove formats this extension affects. Read more
Source§fn image(
&mut self,
limits: &ImageLimits,
source: &mut ImageSource,
options: &mut ImageOptions,
)
fn image( &mut self, limits: &ImageLimits, source: &mut ImageSource, options: &mut ImageOptions, )
Modify a
IMAGES.image request. Read moreAuto Trait Implementations§
impl Freeze for SvgRenderExtension
impl RefUnwindSafe for SvgRenderExtension
impl Send for SvgRenderExtension
impl Sync for SvgRenderExtension
impl Unpin for SvgRenderExtension
impl UnwindSafe for SvgRenderExtension
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more