| { | ||
| "git": { | ||
| "sha1": "a986089ee73111d5bfda48b0c7d29d3f9301571c" | ||
| "sha1": "93ea10b10f5756bd94a8206acf326f491ed3e42a" | ||
| }, | ||
| "path_in_vcs": "zerocopy" | ||
| } |
+3
-3
@@ -122,3 +122,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "zerocopy" | ||
| version = "0.8.54" | ||
| version = "0.8.55" | ||
| dependencies = [ | ||
@@ -136,5 +136,5 @@ "elain", | ||
| name = "zerocopy-derive" | ||
| version = "0.8.54" | ||
| version = "0.8.55" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e2e817b7b52d0c7358d3246da9d69935ebb18116b2b102b4230dac079b4862f5" | ||
| checksum = "0fe976fb70c78cd64cccfe3a6fc142244e8a77b70959b30faf9d0ac37ee228eb" | ||
| dependencies = [ | ||
@@ -141,0 +141,0 @@ "proc-macro2", |
+4
-4
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "zerocopy" | ||
| version = "0.8.54" | ||
| version = "0.8.55" | ||
| authors = [ | ||
@@ -393,3 +393,3 @@ "Joshua Liebow-Feeser <joshlf@google.com>", | ||
| [dependencies.zerocopy-derive] | ||
| version = "=0.8.54" | ||
| version = "=0.8.55" | ||
| optional = true | ||
@@ -418,5 +418,5 @@ | ||
| [dev-dependencies.zerocopy-derive] | ||
| version = "=0.8.54" | ||
| version = "=0.8.55" | ||
| [target."cfg(any())".dependencies.zerocopy-derive] | ||
| version = "=0.8.54" | ||
| version = "=0.8.55" |
+5
-4
@@ -90,3 +90,3 @@ // SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT | ||
| { | ||
| #[doc(hidden)] | ||
| /// A value-level representation of byte order. | ||
| const ORDER: Order; | ||
@@ -102,7 +102,8 @@ } | ||
| #[allow(missing_copy_implementations, missing_debug_implementations)] | ||
| #[doc(hidden)] | ||
| #[derive(PartialEq)] | ||
| /// A value-level representation of [`ByteOrder`]. | ||
| #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] | ||
| pub enum Order { | ||
| /// A value-level representation of [`BigEndian`]. | ||
| BigEndian, | ||
| /// A value-level representation of [`LittleEndian`]. | ||
| LittleEndian, | ||
@@ -109,0 +110,0 @@ } |
@@ -949,2 +949,18 @@ // SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR MIT | ||
| /// Projects `Self` to itself. | ||
| /// | ||
| /// This is used by macros to have the compiler verify that two syntactically | ||
| /// similar types actually resolve to the same type. The blanket implementation | ||
| /// ensures that no other implementation can project a type to anything other | ||
| /// than itself. | ||
| #[doc(hidden)] | ||
| pub trait Identity { | ||
| /// `Self`. | ||
| type Type: ?Sized; | ||
| } | ||
| impl<T: ?Sized> Identity for T { | ||
| type Type = T; | ||
| } | ||
| #[cfg(test)] | ||
@@ -951,0 +967,0 @@ mod tests { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display