pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/crates-dev/bin-encode-decode/commit/44cc3464bd74779f9e208f21f3c1a9828cdae657

link crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-68dd150ce6c8e711.css" /> feat: v1.1.39 · crates-dev/bin-encode-decode@44cc346 · GitHub
Skip to content

Commit 44cc346

Browse files
committed
feat: v1.1.39
1 parent 265f771 commit 44cc346

File tree

8 files changed

+58
-65
lines changed

8 files changed

+58
-65
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bin-encode-decode"
3-
version = "1.1.38"
3+
version = "1.1.39"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/common/error/impl.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/common/error/mod.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/common/impl.rs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
use crate::*;
22

3+
//github.com/ Provides display formatting for EncodeError.
4+
//github.com/
5+
//github.com/ Implements human-readable error messages for encoding failures.
6+
impl fmt::Display for EncodeError {
7+
//github.com/ Formats the EncodeError for display purposes.
8+
//github.com/
9+
//github.com/ # Arguments
10+
//github.com/
11+
//github.com/ - `&mut fmt::Formatter<'_>` - The formatter to use.
12+
//github.com/
13+
//github.com/ # Returns
14+
//github.com/
15+
//github.com/ - `fmt::Result` - Result of the formatting operation.
16+
#[inline(always)]
17+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
18+
match self {
19+
EncodeError::CharsetError => write!(
20+
f,
21+
"EncodeError: Charset is invalid. Please ensure the charset contains exactly {CHARSET_LEN} unique characters."
22+
),
23+
}
24+
}
25+
}
26+
27+
//github.com/ Provides display formatting for DecodeError.
28+
//github.com/
29+
//github.com/ Implements human-readable error messages for decoding failures.
30+
impl fmt::Display for DecodeError {
31+
//github.com/ Formats the DecodeError for display purposes.
32+
//github.com/
33+
//github.com/ # Arguments
34+
//github.com/
35+
//github.com/ - `&mut fmt::Formatter<'_>` - The formatter to use.
36+
//github.com/
37+
//github.com/ # Returns
38+
//github.com/
39+
//github.com/ - `fmt::Result` - Result of the formatting operation.
40+
#[inline(always)]
41+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
42+
match self {
43+
DecodeError::CharsetError => write!(
44+
f,
45+
"DecodeError: Charset is invalid. Please ensure the charset contains exactly {CHARSET_LEN} unique characters."
46+
),
47+
}
48+
}
49+
}
50+
351
//github.com/ Provides default implementation for Charset.
452
//github.com/
553
//github.com/ Creates a new Charset instance with empty string as default charset.

src/common/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
pub(crate) mod r#const;
2-
pub(crate) mod error;
3-
pub(crate) mod r#impl;
4-
pub(crate) mod r#struct;
1+
mod r#const;
2+
mod r#enum;
3+
mod r#impl;
4+
mod r#struct;
55

6-
pub use {error::*, r#struct::*};
6+
pub use {r#enum::*, r#struct::*};
77

88
pub(crate) use r#const::*;
99

src/decode/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub(crate) mod r#impl;
2-
pub(crate) mod r#struct;
1+
mod r#impl;
2+
mod r#struct;
33

44
pub use r#struct::*;
55

src/encode/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pub(crate) mod r#impl;
2-
pub(crate) mod r#struct;
1+
mod r#impl;
2+
mod r#struct;
33

44
pub use r#struct::*;
55

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy