Skip to content

Commit 8854bd5

Browse files
committed
base64ct: derive additional traits on alphabets
1 parent 8a854c7 commit 8854bd5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

base64ct/src/alphabet/bcrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use super::{Alphabet, DecodeStep, EncodeStep};
88
/// ./ [A-Z] [a-z] [0-9]
99
/// 0x2e-0x2f, 0x41-0x5a, 0x61-0x7a, 0x30-0x39
1010
/// ```
11-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
11+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
1212
pub struct Base64Bcrypt;
1313

1414
impl Alphabet for Base64Bcrypt {

base64ct/src/alphabet/crypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use super::{Alphabet, DecodeStep, EncodeStep};
88
/// [.-9] [A-Z] [a-z]
99
/// 0x2e-0x39, 0x41-0x5a, 0x61-0x7a
1010
/// ```
11-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
11+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
1212
pub struct Base64Crypt;
1313

1414
impl Alphabet for Base64Crypt {

base64ct/src/alphabet/shacrypt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use super::{Alphabet, DecodeStep, EncodeStep};
1212
/// [.-9] [A-Z] [a-z]
1313
/// 0x2e-0x39, 0x41-0x5a, 0x61-0x7a
1414
/// ```
15-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
15+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
1616
pub struct Base64ShaCrypt;
1717

1818
impl Alphabet for Base64ShaCrypt {

base64ct/src/alphabet/standard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use super::{Alphabet, DecodeStep, EncodeStep};
88
/// [A-Z] [a-z] [0-9] + /
99
/// 0x41-0x5a, 0x61-0x7a, 0x30-0x39, 0x2b, 0x2f
1010
/// ```
11-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
11+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
1212
pub struct Base64;
1313

1414
impl Alphabet for Base64 {

base64ct/src/alphabet/url.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use super::{Alphabet, DecodeStep, EncodeStep};
88
/// [A-Z] [a-z] [0-9] - _
99
/// 0x41-0x5a, 0x61-0x7a, 0x30-0x39, 0x2d, 0x5f
1010
/// ```
11-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
11+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
1212
pub struct Base64Url;
1313

1414
impl Alphabet for Base64Url {
@@ -25,7 +25,7 @@ impl Alphabet for Base64Url {
2525
/// [A-Z] [a-z] [0-9] - _
2626
/// 0x41-0x5a, 0x61-0x7a, 0x30-0x39, 0x2d, 0x5f
2727
/// ```
28-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
28+
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
2929
pub struct Base64UrlUnpadded;
3030

3131
impl Alphabet for Base64UrlUnpadded {

0 commit comments

Comments
 (0)