Lines Matching full:contiguous
22 /// # use bytemuck::Contiguous;
32 /// unsafe impl Contiguous for Foo {
50 /// Precisely, the guarantees you must uphold when implementing `Contiguous` for
67 /// gets a `C` that implements `Contiguous`, it is in the appropriate range.
70 /// `Contiguous::from_integer` and `Contiguous::into_integer`.
80 pub unsafe trait Contiguous: Copy + 'static { interface
84 /// Contiguous is broadly intended for use with fieldless enums, and for
87 /// *unsound* to implement `Contiguous`!).
111 /// `Contiguous` on your type you **must not** override this method.
115 /// We will not panic for any correct implementation of `Contiguous`, but
123 // Guard against an illegal implementation of Contiguous. Annoyingly we in from_integer()
130 // matched) so this is allowed by `Contiguous`'s unsafe contract. in from_integer()
147 /// `Contiguous` on your type you **must not** override this method.
151 /// We will not panic for any correct implementation of `Contiguous`, but
159 // Guard against an illegal implementation of Contiguous. Annoyingly we in into_integer()
175 unsafe impl Contiguous for $src { impl