use crate::{EncodingWidth, StableOsString};
use std::borrow::Cow;
pub trait ToRawStableEncoding {
fn to_raw_stable_encoding(&self) -> Vec<EncodingWidth>;
}
pub trait IntoRawStableEncoding {
fn into_raw_stable_encoding(self) -> Vec<EncodingWidth>;
}
pub trait FromRawStableEncoding {
unsafe fn from_raw_stable_encoding<'a>(encoded: impl Into<Cow<'a, [EncodingWidth]>>) -> Self;
}
pub trait ToStableEncoding {
fn to_stable_encoding(&self) -> StableOsString;
}
pub trait IntoStableEncoding {
fn into_stable_encoding(self) -> StableOsString;
}