File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -873,8 +873,11 @@ where
873
873
}
874
874
875
875
macro_rules! decl_endian_structs {
876
- { $( $struct: ident $from: ident $into: ident) * } => {
876
+ { $( $endian_str : literal $ struct: ident $from: ident $into: ident) * } => {
877
877
$(
878
+ /// Implements [`Endian`] trait and provides
879
+ #[ doc = $endian_str]
880
+ /// conversions between numbers and arrays
878
881
pub struct $struct {
879
882
__private: ( )
880
883
}
@@ -898,9 +901,9 @@ macro_rules! decl_endian_structs {
898
901
}
899
902
900
903
decl_endian_structs ! {
901
- EndianLittle from_le_bytes into_le_bytes
902
- EndianBig from_be_bytes into_be_bytes
903
- EndianNative from_ne_bytes into_ne_bytes
904
+ "little endian" EndianLittle from_le_bytes into_le_bytes
905
+ "big endian" EndianBig from_be_bytes into_be_bytes
906
+ "native endian" EndianNative from_ne_bytes into_ne_bytes
904
907
}
905
908
906
909
/*
You can’t perform that action at this time.
0 commit comments