[][src]Module linux::lmem

Functions

addr

Returns the address of an object.

align_for

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

align_for_mut

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

as_data

Returns an unspecified byte sequence of a value.

as_mut_data

Returns an unspecified mutable byte sequence of a value.

as_mut_slice

Turns a mutable reference into a mutable one-element slice.

as_slice

Turns a reference into a one-element slice.

copy

Copies bytes from one slice to another.

copy_as

Copies an object and casts the result to another type.

drop

Drops a value.

from_bytes

Turns a slice into a reference to a Pod type if it's suitable.

from_mut_bytes

Turns a mutable slice into a mutable reference to a Pod type if it's suitable.

is_suitable_for

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

swap

Swaps two objects.

unsafe_copy

Copies bytes from one slice to another even if the type does not implement Copy.

zeroed

Creates a sequence of zero bytes.