#![cfg_attr(not(feature = "std"), no_std)]
#![deny(missing_docs)]
#![doc(html_logo_url = "https://raw.githubusercontent.com/al8n/crabmole/main/art/crabmole.jpg")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(docsrs, allow(unused_attributes))]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "sort")]
#[cfg_attr(docsrs, doc(cfg(feature = "sort")))]
pub mod sort;
#[cfg(feature = "encoding")]
#[cfg_attr(docsrs, doc(cfg(feature = "encoding")))]
pub mod encoding;
#[cfg(any(feature = "io", feature = "async-io"))]
#[cfg_attr(docsrs, doc(cfg(any(feature = "io", feature = "async-io"))))]
pub mod io;
#[inline]
pub fn copy<T: core::marker::Copy>(src: &[T], dst: &mut [T]) -> usize {
let min_len = core::cmp::min(src.len(), dst.len());
dst[..min_len].copy_from_slice(&src[..min_len]);
min_len
}