Calculate the alignment of the constant data.
(&self)
| 1944 | |
| 1945 | /// Calculate the alignment of the constant data. |
| 1946 | pub fn alignment(&self) -> u32 { |
| 1947 | if self.as_slice().len() <= 8 { 8 } else { 16 } |
| 1948 | } |
| 1949 | } |
| 1950 | |
| 1951 | #[cfg(test)] |
no test coverage detected