|
| 1 | +// AUTOGENERATED FILE, DO NOT EDIT |
| 2 | +// |
| 3 | +// Crate Name: `libipld_core` |
| 4 | +// Crate Version: `0.16.0` |
| 5 | +impl crate::Debug for libipld_core::error::BlockNotFound { |
| 6 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 7 | + f.debug_tuple("BlockNotFound").field(&self.0).finish() |
| 8 | + } |
| 9 | +} |
| 10 | +impl crate::Debug for libipld_core::error::BlockTooLarge { |
| 11 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 12 | + f.debug_tuple("BlockTooLarge").field(&self.0).finish() |
| 13 | + } |
| 14 | +} |
| 15 | +impl crate::Debug for libipld_core::error::InvalidMultihash { |
| 16 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 17 | + f.debug_tuple("InvalidMultihash").field(&self.0).finish() |
| 18 | + } |
| 19 | +} |
| 20 | +impl crate::Debug for libipld_core::error::TypeError { |
| 21 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 22 | + f.debug_struct("TypeError") |
| 23 | + .field("expected", &self.expected) |
| 24 | + .field("found", &self.found) |
| 25 | + .finish() |
| 26 | + } |
| 27 | +} |
| 28 | +impl crate::Debug for libipld_core::error::TypeErrorType { |
| 29 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 30 | + match self { |
| 31 | + Self::Null => { |
| 32 | + f.debug_tuple("Null").finish(); |
| 33 | + } |
| 34 | + Self::Bool => { |
| 35 | + f.debug_tuple("Bool").finish(); |
| 36 | + } |
| 37 | + Self::Integer => { |
| 38 | + f.debug_tuple("Integer").finish(); |
| 39 | + } |
| 40 | + Self::Float => { |
| 41 | + f.debug_tuple("Float").finish(); |
| 42 | + } |
| 43 | + Self::String => { |
| 44 | + f.debug_tuple("String").finish(); |
| 45 | + } |
| 46 | + Self::Bytes => { |
| 47 | + f.debug_tuple("Bytes").finish(); |
| 48 | + } |
| 49 | + Self::List => { |
| 50 | + f.debug_tuple("List").finish(); |
| 51 | + } |
| 52 | + Self::Map => { |
| 53 | + f.debug_tuple("Map").finish(); |
| 54 | + } |
| 55 | + Self::Link => { |
| 56 | + f.debug_tuple("Link").finish(); |
| 57 | + } |
| 58 | + Self::Key(__0) => { |
| 59 | + f.debug_tuple("Key").field(__0).finish(); |
| 60 | + } |
| 61 | + Self::Index(__0) => { |
| 62 | + f.debug_tuple("Index").field(__0).finish(); |
| 63 | + } |
| 64 | + } |
| 65 | + } |
| 66 | +} |
| 67 | +impl crate::Debug for libipld_core::error::UnsupportedCodec { |
| 68 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 69 | + f.debug_tuple("UnsupportedCodec").field(&self.0).finish() |
| 70 | + } |
| 71 | +} |
| 72 | +impl crate::Debug for libipld_core::error::UnsupportedMultihash { |
| 73 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 74 | + f.debug_tuple("UnsupportedMultihash") |
| 75 | + .field(&self.0) |
| 76 | + .finish() |
| 77 | + } |
| 78 | +} |
| 79 | +impl crate::Debug for libipld_core::ipld::Ipld { |
| 80 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 81 | + match self { |
| 82 | + Self::Null => { |
| 83 | + f.debug_tuple("Null").finish(); |
| 84 | + } |
| 85 | + Self::Bool(__0) => { |
| 86 | + f.debug_tuple("Bool").field(__0).finish(); |
| 87 | + } |
| 88 | + Self::Integer(__0) => { |
| 89 | + f.debug_tuple("Integer").field(__0).finish(); |
| 90 | + } |
| 91 | + Self::Float(__0) => { |
| 92 | + f.debug_tuple("Float").field(__0).finish(); |
| 93 | + } |
| 94 | + Self::String(__0) => { |
| 95 | + f.debug_tuple("String").field(__0).finish(); |
| 96 | + } |
| 97 | + Self::Bytes(__0) => { |
| 98 | + f.debug_tuple("Bytes").field(__0).finish(); |
| 99 | + } |
| 100 | + Self::List(__0) => { |
| 101 | + f.debug_tuple("List").field(__0).finish(); |
| 102 | + } |
| 103 | + Self::Map(__0) => { |
| 104 | + f.debug_tuple("Map").field(__0).finish(); |
| 105 | + } |
| 106 | + Self::Link(__0) => { |
| 107 | + f.debug_tuple("Link").field(__0).finish(); |
| 108 | + } |
| 109 | + } |
| 110 | + } |
| 111 | +} |
| 112 | +impl<'a> crate::Debug for libipld_core::ipld::IpldIndex<'a> { |
| 113 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 114 | + match self { |
| 115 | + Self::List(__0) => { |
| 116 | + f.debug_tuple("List").field(__0).finish(); |
| 117 | + } |
| 118 | + Self::Map(__0) => { |
| 119 | + f.debug_tuple("Map").field(__0).finish(); |
| 120 | + } |
| 121 | + Self::MapRef(__0) => { |
| 122 | + f.debug_tuple("MapRef").field(__0).finish(); |
| 123 | + } |
| 124 | + } |
| 125 | + } |
| 126 | +} |
| 127 | +// Skipping libipld_core::ipld::IpldIter due to hidden fields |
| 128 | +// Skipping libipld_core::link::Link due to hidden fields |
| 129 | +impl crate::Debug for libipld_core::raw::RawCodec { |
| 130 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 131 | + f.debug_struct("RawCodec").finish() |
| 132 | + } |
| 133 | +} |
| 134 | +impl crate::Debug for libipld_core::raw_value::IgnoredAny { |
| 135 | + fn fmt(&self, f: &mut crate::Formatter) { |
| 136 | + f.debug_struct("IgnoredAny").finish() |
| 137 | + } |
| 138 | +} |
| 139 | +// Skipping libipld_core::raw_value::RawValue due to hidden fields |
0 commit comments