konst::slice

Trait BytesPattern

Source
pub trait BytesPattern<const N: usize>: HasTypeWitness<BytesPatternInput<N, Self>> { }
Expand description

A byte slice pattern.

Types that implement this trait can be used to search into a byte slice.

This trait can only be implemented in the konst crate.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BytesPattern<0> for char

Source§

impl BytesPattern<0> for str

Source§

impl BytesPattern<0> for [u8]

Source§

impl<const N: usize> BytesPattern<N> for [u8; N]

Implementors§