• U
    Use .copy_from_slice() where applicable · 2d6496dd
    Ulrik Sverdrup 提交于
    .copy_from_slice() does the same job of .clone_from_slice(), but the
    former is explicitly for Copy elements and calls `memcpy` directly, and
    thus is it efficient without optimization too.
    2d6496dd
lib.rs 4.2 KB