| 1 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/; |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/; |
| 3 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/; |
| 4 | |
| 5 | use quick_errorrust-analyzer cargo quick-error 2.0.1 crate/::quick_errorrust-analyzer cargo quick-error 2.0.1 quick_error!; |
| 6 | |
| 7 | use craterust-analyzer cargo tiff 0.11.3 crate/::decoderrust-analyzer cargo tiff 0.11.3 decoder/::ChunkTyperust-analyzer cargo tiff 0.11.3 decoder/ChunkType#; |
| 8 | use craterust-analyzer cargo tiff 0.11.3 crate/::tagsrust-analyzer cargo tiff 0.11.3 tags/::Typerust-analyzer cargo tiff 0.11.3 tags/Type#; |
| 9 | use craterust-analyzer cargo tiff 0.11.3 crate/::tagsrust-analyzer cargo tiff 0.11.3 tags/::{ |
| 10 | CompressionMethodrust-analyzer cargo tiff 0.11.3 tags/CompressionMethod#, PhotometricInterpretationrust-analyzer cargo tiff 0.11.3 tags/PhotometricInterpretation#, PlanarConfigurationrust-analyzer cargo tiff 0.11.3 tags/PlanarConfiguration#, SampleFormatrust-analyzer cargo tiff 0.11.3 tags/SampleFormat#, Tagrust-analyzer cargo tiff 0.11.3 tags/Tag#, |
| 11 | }; |
| 12 | use craterust-analyzer cargo tiff 0.11.3 crate/::ColorTyperust-analyzer cargo tiff 0.11.3 ColorType#; |
| 13 | |
| 14 | quick_errorrust-analyzer cargo quick-error 2.0.1 quick_error!! { |
| 15 | /// Tiff error kinds. |
| 16 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 17 | pub enum TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 18 | /// The Image is not formatted properly. |
| 19 | FormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#FormatError#(err: TiffFormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#) { |
| 20 | display("format error: {err}") |
| 21 | from() |
| 22 | source(err) |
| 23 | } |
| 24 | /// The Decoder does not support features required by the image. |
| 25 | UnsupportedErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#UnsupportedError#(err: TiffUnsupportedErrorrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#) { |
| 26 | display("unsupported error: {err}") |
| 27 | from() |
| 28 | source(err) |
| 29 | } |
| 30 | /// An I/O Error occurred while decoding the image. |
| 31 | IoErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#IoError#(err: iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/error/Error#) { |
| 32 | display("{err}") |
| 33 | from() |
| 34 | source(err) |
| 35 | } |
| 36 | /// The Limits of the Decoder is exceeded. |
| 37 | LimitsExceededrust-analyzer cargo tiff 0.11.3 error/TiffError#LimitsExceeded# { |
| 38 | display("decoder limits exceeded") |
| 39 | } |
| 40 | /// An integer conversion to or from a platform size failed. |
| 41 | IntSizeErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#IntSizeError# { |
| 42 | display("platform or format size limits exceeded") |
| 43 | } |
| 44 | /// The image does not support the requested operation |
| 45 | UsageErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#UsageError#(err: UsageErrorrust-analyzer cargo tiff 0.11.3 error/UsageError#) { |
| 46 | display("usage error: {err}") |
| 47 | from() |
| 48 | source(err) |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | quick_errorrust-analyzer cargo quick-error 2.0.1 quick_error!! { |
| 54 | /// The image is not formatted properly. |
| 55 | /// |
| 56 | /// This indicates that the encoder producing the image might behave incorrectly or that the |
| 57 | /// input file has been corrupted. |
| 58 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 59 | #[non_exhaustive] |
| 60 | pub enum TiffFormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError# { |
| 61 | TiffSignatureNotFoundrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#TiffSignatureNotFound# { |
| 62 | display("TIFF signature not found") |
| 63 | } |
| 64 | TiffSignatureInvalidrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#TiffSignatureInvalid# { |
| 65 | display("TIFF signature invalid") |
| 66 | } |
| 67 | ImageFileDirectoryNotFoundrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#ImageFileDirectoryNotFound# { |
| 68 | display("image file directory not found") |
| 69 | } |
| 70 | InconsistentSizesEncounteredrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InconsistentSizesEncountered# { |
| 71 | display("inconsistent sizes encountered") |
| 72 | } |
| 73 | InvalidDimensionsrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidDimensions#(width: u32, height: u32) { |
| 74 | display("invalid dimensions: {width}x{height}") |
| 75 | } |
| 76 | InvalidTagrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidTag# { |
| 77 | display("image contains invalid tag") |
| 78 | } |
| 79 | InvalidTagValueTyperust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidTagValueType#(tag: Tagrust-analyzer cargo tiff 0.11.3 tags/Tag#) { |
| 80 | display("tag `{tag:?}` did not have the expected value type") |
| 81 | } |
| 82 | RequiredTagNotFoundrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#RequiredTagNotFound#(tag: Tagrust-analyzer cargo tiff 0.11.3 tags/Tag#) { |
| 83 | display("required tag `{tag:?}` not found") |
| 84 | } |
| 85 | UnknownPredictorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#UnknownPredictor#(pred: u16) { |
| 86 | display("unknown predictor “{pred}” encountered") |
| 87 | } |
| 88 | UnknownPlanarConfigurationrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#UnknownPlanarConfiguration#(cfg: u16) { |
| 89 | display("unknown planar configuration “{cfg}”") |
| 90 | } |
| 91 | InvalidTypeForTagrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidTypeForTag# { |
| 92 | display("tag has invalid type") |
| 93 | } |
| 94 | InvalidCountForTagrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidCountForTag#(tag: Tagrust-analyzer cargo tiff 0.11.3 tags/Tag#, len: usize) { |
| 95 | display("tag `{tag:?}` with incorrect number of elements ({len}) encountered") |
| 96 | } |
| 97 | StripTileTagConflictrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#StripTileTagConflict# { |
| 98 | display("file should contain either (StripByteCounts and StripOffsets) or (TileByteCounts and TileOffsets), other combination was found") |
| 99 | } |
| 100 | CycleInOffsetsrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#CycleInOffsets# { |
| 101 | display("file contained a cycle in the list of IFDs") |
| 102 | } |
| 103 | SamplesPerPixelIsZerorust-analyzer cargo tiff 0.11.3 error/TiffFormatError#SamplesPerPixelIsZero# { |
| 104 | display("samples per pixel is zero") |
| 105 | } |
| 106 | CompressedDataCorruptrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#CompressedDataCorrupt#(message: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) { |
| 107 | display("compressed data is corrupt: {message}") |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | quick_errorrust-analyzer cargo quick-error 2.0.1 quick_error!! { |
| 113 | /// The Decoder does not support features required by the image. |
| 114 | /// |
| 115 | /// This only captures known failures for which the standard either does not require support or an |
| 116 | /// implementation has been planned but not yet completed. Some variants may become unused over |
| 117 | /// time and will then get deprecated before being removed. |
| 118 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:, Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/macros/Hash:)] |
| 119 | #[non_exhaustive] |
| 120 | pub enum TiffUnsupportedErrorrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError# { |
| 121 | FloatingPointPredictorrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#FloatingPointPredictor#(color_type: ColorTyperust-analyzer cargo tiff 0.11.3 ColorType#) { |
| 122 | display("floating point predictor for {color_type:?} is unsupported") |
| 123 | } |
| 124 | HorizontalPredictorrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#HorizontalPredictor#(color_type: ColorTyperust-analyzer cargo tiff 0.11.3 ColorType#) { |
| 125 | display("horizontal predictor for {color_type:?} is unsupported") |
| 126 | } |
| 127 | InconsistentBitsPerSamplerust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#InconsistentBitsPerSample#(bits_per_sample: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>) { |
| 128 | display("inconsistent bits per sample: {bits_per_sample:?}") |
| 129 | } |
| 130 | InterpretationWithBitsrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#InterpretationWithBits#(interpretation: PhotometricInterpretationrust-analyzer cargo tiff 0.11.3 tags/PhotometricInterpretation#, bits_per_sample: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>) { |
| 131 | display("Photometric interpretation {interpretation:?} with bits per sample {bits_per_sample:?} is unsupported") |
| 132 | } |
| 133 | UnknownInterpretationrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnknownInterpretation# { |
| 134 | display("unknown photometric interpretation") |
| 135 | } |
| 136 | UnknownCompressionMethodrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnknownCompressionMethod# { |
| 137 | display("unknown compression method") |
| 138 | } |
| 139 | UnsupportedCompressionMethodrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedCompressionMethod#(method: CompressionMethodrust-analyzer cargo tiff 0.11.3 tags/CompressionMethod#) { |
| 140 | display("compression method {method:?} is unsupported") |
| 141 | } |
| 142 | UnsupportedSampleDepthrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedSampleDepth#(depth: u8) { |
| 143 | display("{depth} samples per pixel is unsupported") |
| 144 | } |
| 145 | UnsupportedSampleFormatrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedSampleFormat#(sample_format: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<SampleFormatrust-analyzer cargo tiff 0.11.3 tags/SampleFormat#>) { |
| 146 | display("sample format {sample_format:?} is unsupported") |
| 147 | } |
| 148 | UnsupportedColorTyperust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedColorType#(color_type: ColorTyperust-analyzer cargo tiff 0.11.3 ColorType#) { |
| 149 | display("color type {color_type:?} is unsupported") |
| 150 | } |
| 151 | UnsupportedBitsPerChannelrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedBitsPerChannel#(bits_per_channel: u8) { |
| 152 | display("{bits_per_channel} bits per channel not supported") |
| 153 | } |
| 154 | UnsupportedPlanarConfigrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedPlanarConfig#(planar: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<PlanarConfigurationrust-analyzer cargo tiff 0.11.3 tags/PlanarConfiguration#>) { |
| 155 | display("unsupported planar configuration “{planar:?}”") |
| 156 | } |
| 157 | UnsupportedDataTyperust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedDataType# { |
| 158 | display("unsupported data type.") |
| 159 | } |
| 160 | UnsupportedInterpretationrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#UnsupportedInterpretation#(interpretation: PhotometricInterpretationrust-analyzer cargo tiff 0.11.3 tags/PhotometricInterpretation#) { |
| 161 | display("unsupported photometric interpretation \"{interpretation:?}\"") |
| 162 | } |
| 163 | ChromaSubsamplingrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#ChromaSubsampling# { |
| 164 | display("chroma subsampling of YCbCr color is unsupported") |
| 165 | } |
| 166 | MisalignedTileBoundariesrust-analyzer cargo tiff 0.11.3 error/TiffUnsupportedError#MisalignedTileBoundaries# { |
| 167 | display("tile rows are not aligned to byte boundaries") |
| 168 | } |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | quick_errorrust-analyzer cargo quick-error 2.0.1 quick_error!! { |
| 173 | /// User attempted to use the Decoder in a way that is incompatible with a specific image. |
| 174 | /// |
| 175 | /// For example: attempting to read a tile from a stripped image. |
| 176 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)] |
| 177 | #[non_exhaustive] |
| 178 | pub enum UsageErrorrust-analyzer cargo tiff 0.11.3 error/UsageError# { |
| 179 | InvalidChunkTyperust-analyzer cargo tiff 0.11.3 error/UsageError#InvalidChunkType#(expected: ChunkTyperust-analyzer cargo tiff 0.11.3 decoder/ChunkType#, actual: ChunkTyperust-analyzer cargo tiff 0.11.3 decoder/ChunkType#) { |
| 180 | display("requested operation is only valid for images with chunk encoding of type {expected:?} but got {actual:?}") |
| 181 | } |
| 182 | InvalidChunkIndexrust-analyzer cargo tiff 0.11.3 error/UsageError#InvalidChunkIndex#(index: u32) { |
| 183 | display("invalid chunk index ({index}) requested") |
| 184 | } |
| 185 | InvalidPlaneIndexrust-analyzer cargo tiff 0.11.3 error/UsageError#InvalidPlaneIndex#(index: u16) { |
| 186 | display("invalid plane index ({index}) requested") |
| 187 | } |
| 188 | InvalidCodingUnitrust-analyzer cargo tiff 0.11.3 error/UsageError#InvalidCodingUnit#(index: u32, have: u32) { |
| 189 | display("out of bounds coding unit ({index}) requested, only {have} available") |
| 190 | } |
| 191 | PredictorCompressionMismatchrust-analyzer cargo tiff 0.11.3 error/UsageError#PredictorCompressionMismatch# { |
| 192 | display("requested predictor is not compatible with the requested compression") |
| 193 | } |
| 194 | PredictorIncompatiblerust-analyzer cargo tiff 0.11.3 error/UsageError#PredictorIncompatible# { |
| 195 | display("the requested predictor is not compatible with the image's format") |
| 196 | } |
| 197 | PredictorUnavailablerust-analyzer cargo tiff 0.11.3 error/UsageError#PredictorUnavailable# { |
| 198 | display("the requested predictor is not available") |
| 199 | } |
| 200 | InsufficientOutputBufferSizerust-analyzer cargo tiff 0.11.3 error/UsageError#InsufficientOutputBufferSize# { neededrust-analyzer cargo tiff 0.11.3 error/UsageError#InsufficientOutputBufferSize#needed.: usize, providedrust-analyzer cargo tiff 0.11.3 error/UsageError#InsufficientOutputBufferSize#provided.: usize } { |
| 201 | display("the borrowed output buffer is not large enough for the decoded data, needed {needed} but have {provided}") |
| 202 | } |
| 203 | InsufficientOutputRowStriderust-analyzer cargo tiff 0.11.3 error/UsageError#InsufficientOutputRowStride# { neededrust-analyzer cargo tiff 0.11.3 error/UsageError#InsufficientOutputRowStride#needed.: usize, requestedrust-analyzer cargo tiff 0.11.3 error/UsageError#InsufficientOutputRowStride#requested.: usize } { |
| 204 | display("the provided output row stride would alias rows of decoded data, needed {needed} but have {requested}") |
| 205 | } |
| 206 | ZeroIfdPointerrust-analyzer cargo tiff 0.11.3 error/UsageError#ZeroIfdPointer# { |
| 207 | display("the offset 0 can not point to a valid IFD") |
| 208 | } |
| 209 | ReconfiguredAfterImageWriterust-analyzer cargo tiff 0.11.3 error/UsageError#ReconfiguredAfterImageWrite# { |
| 210 | display("attempted to reconfigure the encoder after image writing has started") |
| 211 | } |
| 212 | ByteOrderMismatchrust-analyzer cargo tiff 0.11.3 error/UsageError#ByteOrderMismatch# { |
| 213 | display("attempted to use data with a byte order that does not match the required one") |
| 214 | } |
| 215 | MismatchedEntryLengthrust-analyzer cargo tiff 0.11.3 error/UsageError#MismatchedEntryLength# {tyrust-analyzer cargo tiff 0.11.3 error/UsageError#MismatchedEntryLength#ty.: Typerust-analyzer cargo tiff 0.11.3 tags/Type#, foundrust-analyzer cargo tiff 0.11.3 error/UsageError#MismatchedEntryLength#found.: usize } { |
| 216 | display("the length of data is not a multiple of the size of the type {ty:?}, found {found}") |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/::Utf8Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/error/Utf8Error#> for TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 222 | fn fromrust-analyzer cargo tiff 0.11.3 error/impl#[TiffError][`From<str::Utf8Error>`]from().(_err: strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/::Utf8Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/error/Utf8Error#) -> TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 223 | TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#::FormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#FormatError#(TiffFormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#::InvalidTagrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidTag#) |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/::FromUtf8Errorrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/FromUtf8Error#> for TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 228 | fn fromrust-analyzer cargo tiff 0.11.3 error/impl#[TiffError][`From<string::FromUtf8Error>`]from().(_err: stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/::FromUtf8Errorrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/FromUtf8Error#) -> TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 229 | TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#::FormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#FormatError#(TiffFormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#::InvalidTagrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#InvalidTag#) |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::numrust-analyzer cargo std https://github.com/rust-lang/rust/library/std num/::TryFromIntErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/error/TryFromIntError#> for TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 234 | fn fromrust-analyzer cargo tiff 0.11.3 error/impl#[TiffError][`From<std::num::TryFromIntError>`]from().(_err: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::numrust-analyzer cargo std https://github.com/rust-lang/rust/library/std num/::TryFromIntErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/error/TryFromIntError#) -> TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 235 | TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#::IntSizeErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#IntSizeError# |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | #[cfg(feature = "lzw")] |
| 240 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<weezlrust-analyzer cargo weezl 0.1.10 crate/::LzwErrorrust-analyzer cargo weezl 0.1.10 error/LzwError#> for TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 241 | fn fromrust-analyzer cargo tiff 0.11.3 error/impl#[TiffError][`From<weezl::LzwError>`]from().(err: weezlrust-analyzer cargo weezl 0.1.10 crate/::LzwErrorrust-analyzer cargo weezl 0.1.10 error/LzwError#) -> TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 242 | TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#::FormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#FormatError#(TiffFormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#::CompressedDataCorruptrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#CompressedDataCorrupt#(err.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())) |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | #[cfg(feature = "jpeg")] |
| 247 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<zune_jpegrust-analyzer cargo zune-jpeg 0.5.8 crate/::errorsrust-analyzer cargo zune-jpeg 0.5.8 errors/::DecodeErrorsrust-analyzer cargo zune-jpeg 0.5.8 errors/DecodeErrors#> for TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError# { |
| 248 | fn fromrust-analyzer cargo tiff 0.11.3 error/impl#[TiffError][`From<zune_jpeg::errors::DecodeErrors>`]from().(err: zune_jpegrust-analyzer cargo zune-jpeg 0.5.8 crate/::errorsrust-analyzer cargo zune-jpeg 0.5.8 errors/::DecodeErrorsrust-analyzer cargo zune-jpeg 0.5.8 errors/DecodeErrors#) -> Selfrust-analyzer cargo tiff 0.11.3 error/impl#[TiffError][`From<zune_jpeg::errors::DecodeErrors>`] { |
| 249 | TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#::FormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#FormatError#(TiffFormatErrorrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#::CompressedDataCorruptrust-analyzer cargo tiff 0.11.3 error/TiffFormatError#CompressedDataCorrupt#(err.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())) |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | /// Result of an image decoding/encoding process |
| 254 | pub type TiffResultrust-analyzer cargo tiff 0.11.3 error/TiffResult#<T> = Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<T, TiffErrorrust-analyzer cargo tiff 0.11.3 error/TiffError#>; |