pub enum ImageFormat {
Jpeg,
Png,
Gif,
Tiff,
Bmp,
JpegXr,
}展开描述
crate::encoder::ImageEncoder 所支持的输出图像格式。
变体§
Jpeg
JPEG(有损)。
Png
PNG(无损)。
Gif
GIF(基于调色板)。
Tiff
TIFF(标记图像文件格式)。
Bmp
BMP(位图)。
JpegXr
JPEG XR(HD 照片)。
Trait 实现§
源代码§impl Clone for ImageFormat
impl Clone for ImageFormat
源代码§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
返回值的副本。 阅读更多
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 阅读更多源代码§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
impl Copy for ImageFormat
impl Eq for ImageFormat
impl StructuralPartialEq for ImageFormat
自动 Trait 实现§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
通用实现§
源代码§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
源代码§impl<T> IntoEither for T
impl<T> IntoEither for T
源代码§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
将
self 转换为 Left 变体,如果 Either<Self, Self>
当 into_left is true.
Converts self into a Right 变体,如果 Either<Self, Self>
否则。 阅读更多源代码§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
将
self 转换为 Left 变体,如果 Either<Self, Self>
当 into_left(&self) returns true.
Converts self into a Right 变体,如果 Either<Self, Self>
否则。 阅读更多