[−][src]Struct blend2d::codec::ImageCodec
Provides a unified interface for inspecting image data and creating image decoders & encoders.
Methods
impl ImageCodec
[src]
pub fn create_decoder(&self) -> Option<ImageDecoder>
[src]
Creates an ImageDecoder
for this codec.
pub fn create_encoder(&self) -> Option<ImageEncoder>
[src]
Creates an ImageEncoder
for this codec.
pub fn inspect_data<R: AsRef<[u8]>>(&self, data: R) -> u32
[src]
Inspects the given data blob and determines how likely it is that the file belongs to this codec.
pub fn built_in_codecs() -> Array<ImageCodec>
[src]
Returns the blend2d builtin codecs.
pub fn add_to_built_in(codec: &ImageCodec)
[src]
Adds a codec to the built in codecs list.
pub fn remove_from_built_in(codec: &ImageCodec)
[src]
Removes the codec from the built in codecs list.
pub fn name(&self) -> &str
[src]
The codec's name.
pub fn vendor(&self) -> &str
[src]
The codec's vendor.
pub fn mime_type(&self) -> &str
[src]
The codec's mime-type.
pub fn extensions(&self) -> impl Iterator<Item = &str>
[src]
The codec's file extensions.
pub fn features(&self) -> ImageCodecFeatures
[src]
The codec's features.
Trait Implementations
impl PartialEq<ImageCodec> for ImageCodec
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for ImageCodec
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for ImageCodec
[src]
impl Debug for ImageCodec
[src]
Auto Trait Implementations
impl Unpin for ImageCodec
impl !Sync for ImageCodec
impl !Send for ImageCodec
impl RefUnwindSafe for ImageCodec
impl UnwindSafe for ImageCodec
Blanket Implementations
impl<T> ArrayType for T where
T: WrappedBlCore,
[src]
T: WrappedBlCore,
const IMPL_IDX: usize
[src]
unsafe fn push(&mut BLArrayCore, T)
[src]
unsafe fn insert(&mut BLArrayCore, usize, T)
[src]
unsafe fn replace(&mut BLArrayCore, usize, T)
[src]
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,