elipdotter::index

Struct Alphanumeral

source
pub struct Alphanumeral<T: ?Sized> { /* private fields */ }
Expand description

Wrapper for representing T as only containing alphanumeric characters.

The Eq and Ord implementations discard any eventual non-alphanumeric characters.

Can with benefits be used with StrPtr.

Implementations§

source§

impl<T> Alphanumeral<T>

source

pub fn new(s: T) -> Self

source

pub fn owned(&self) -> Alphanumeral<T::Owned>
where T: