oct 0.34.0

Octonary transcodings.
Documentation
// Copyright 2024-2026 Gabriel Bjørnager Jensen.
//
// SPDX: MIT OR Apache-2.0

//! The [`Slice`] trait.

use crate::Outlay;

/// Denotes a type with a slice layout.
///
/// # Safety
///
/// Only [slices] and size-like DSTs may implement
/// this trait.
///
/// [slices]: slice
pub unsafe trait Slice: Outlay<Metadata = usize> {}

unsafe impl<T> Slice for [T] {}

unsafe impl Slice for str {}