pub trait Kind:
Sealed
+ Copy
+ 'static {
type C: Copy + 'static;
type Char: Copy + From<u8> + Into<u32> + PartialEq + 'static;
const NUL: Self::Char;
const IS_THIN_NOT_WIDE: bool;
// Required methods
fn r2c(c: Self::Char) -> Self::C;
fn c2r(c: Self::C) -> Self::Char;
fn chars_from_bytes(b: &[u8]) -> Option<&[Self::Char]>;
fn chars_to_bytes(c: &[Self::Char]) -> Option<&[u8]>;
unsafe fn strlen(s: *const Self::C) -> usize;
unsafe fn strchr(s: *const Self::C, c: Self::C) -> *const Self::C;
unsafe fn strchrnul(s: *const Self::C, c: Self::C) -> *const Self::C;
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn r2c(c: Self::Char) -> Self::C
fn c2r(c: Self::C) -> Self::Char
fn chars_from_bytes(b: &[u8]) -> Option<&[Self::Char]>
fn chars_to_bytes(c: &[Self::Char]) -> Option<&[u8]>
unsafe fn strlen(s: *const Self::C) -> usize
unsafe fn strchr(s: *const Self::C, c: Self::C) -> *const Self::C
unsafe fn strchrnul(s: *const Self::C, c: Self::C) -> *const Self::C
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".