Lines Matching full:alignment
16 /// A type with no alignment requirement.
18 /// An `Unalign` wraps a `T`, removing any alignment requirement. `Unalign<T>`
20 /// alignment [or ABI]. This is useful if a type with an alignment requirement
21 /// needs to be read from a chunk of memory which provides no alignment
24 /// Since `Unalign` has no alignment requirement, the inner `T` may not be
29 /// fail if the `Unalign` does not satisfy `T`'s alignment requirement at
33 /// the `Unalign` satisfies `T`'s alignment requirement
48 /// In this example, we need `EthernetFrame` to have no alignment requirement -
51 /// alignment requirement so that `EthernetFrame` has no alignment requirement
92 /// // alignment requirement.
103 /// `Unalign<T>` is guaranteed to have alignment 1.
139 // - `Unalign<T>` promises to have alignment 1, and so we don't require that `T:
230 /// Returns a reference to the wrapped `T` without checking alignment.
241 // at the same memory location as `self`. It has no alignment guarantee, in deref_unchecked()
253 /// alignment.
264 // the same memory location as `self`. It has no alignment guarantee, in deref_mut_unchecked()
278 /// of `get_ptr` will result in undefined behavior if alignment is not
303 /// of `get_ptr` will result in undefined behavior if alignment is not
349 // SAFETY: Since `T`'s alignment is 1, `self` satisfies its in update()
350 // alignment by definition. in update()
554 // `MaybeUninit<T>` is guaranteed to have the same size, alignment, in uninit()
666 // - `ReadOnly<T>` has the same alignment as `T`, and so it is `Unaligned`
722 // SAFETY: `ReadOnly<T>` has the same alignment as `T`, and in from()
857 // Test methods that don't depend on alignment. in test_unalign()
866 // Test methods that depend on alignment (when alignment is satisfied). in test_unalign()
870 // SAFETY: The `Align<_, AU64>` guarantees proper alignment. in test_unalign()
872 // SAFETY: The `Align<_, AU64>` guarantees proper alignment. in test_unalign()
877 // Test methods that depend on alignment (when alignment is not in test_unalign()
905 // SAFETY: The `Align<_, AU64>` guarantees proper alignment. in test_unalign()
946 // `u.t` is definitely not validly-aligned for `AU64`'s alignment of 8. in test_unalign_copy_clone()