[][src]Function linux::lmem::is_suitable_for

pub fn is_suitable_for<T>(buf: &[u8]) -> bool

Returns whether a buffer is suitable to hold an object of a certain type.

[argument, buf] The buffer to be checked.

= Remarks

The buffer is suitable if it is large enough to hold the type and properly aligned.