[][src]Function linux::lmem::align_for_mut

pub fn align_for_mut<T>(buf: &mut [u8]) -> &mut [u8]

Left-trims a mutable byte slice so that the first element is aligned.

[argument, buf] The slice to be trimmed.

= Remarks

That is, if the returned slice is not empty, the address of the first element is a multiple of the alignment of T.