Skip to main content

Unit

Trait Unit 

Source
pub trait Unit:
    Copy
    + Into<u32>
    + 'static { }
Expand description

a code unit: a byte of an ascii input or an utf-16 code unit

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Unit for u8

Source§

impl Unit for u16

Implementors§