fn cmp(&self, other: &Self) -> Ordering {
        Ord::cmp(&**self, &**other)
    }
Converts a `&[T]` into a `Box<[T]>`

This conversion allocates on the heap
and performs a copy of `slice`.

# Examples
```rust
// create a &[u8] which will be used to create a Box<[u8]>
let slice: &[u8] = &[104, 101, 108, 108, 111];
let boxed_slice: Box<[u8]> = Box::from(slice);

println!("{:?}",
benchmarks/haystacks/code/rust-library.rs