Trait konst::slice::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.

Object Safety§

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§