Module x11rb::utils

source ·
Expand description

Utility functions that are not specific to X11.

§CSlice

CSlice is a wrapper around some bytes in memory. It is unsafe to construct, but takes ownership of the bytes and allows accessing them as a [u8]. When dropped, the underlying memory is freed via libc::free.

CSlice is only available when the allow-unsafe-code feature is enabled.

Structs§

  • Wrapper around a slice that was allocated in C code.

Type Aliases§

  • A type representative of the file descriptors as they are sent to and from the X server.