kernel::utilities

Module copy_slice

Source
Expand description

Helper functions for copying buffers.

This utility provides an implementation of the standard Rust slice::copy_from_slice() method that cannot panic. This method is provided through the CopyOrErr trait.

This functionality is currently provided for the following types:

  • u8
  • u16
  • u32
  • u64
  • usize

Traitsยง

  • Interface for copying buffers that cannot panic.