Enum univstring::ConversionError
[−]
[src]
pub enum ConversionError<NE> {
Nul(NE),
InvalidChar(Utf8Error),
InvalidWChar(FromUtf16Error),
}An error description while converting strings
Variants
Nul(NE)InvalidChar(Utf8Error)InvalidWChar(FromUtf16Error)
Trait Implementations
impl<NE: Debug> Debug for ConversionError<NE>[src]
impl<NE: Display> Display for ConversionError<NE>[src]
fn fmt(&self, fmt: &mut Formatter) -> FmtResult[src]
Formats the value using the given formatter. Read more
impl<NE: Error> Error for ConversionError<NE>[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>[src]
The lower-level cause of this error, if any. Read more
impl From<CNulError> for ConversionError<CNulError>[src]
impl From<WideNulError> for ConversionError<WideNulError>[src]
fn from(e: WideNulError) -> Self[src]
Performs the conversion.
impl<NE> From<Utf8Error> for ConversionError<NE>[src]
impl<NE> From<FromUtf16Error> for ConversionError<NE>[src]
fn from(e: FromUtf16Error) -> Self[src]
Performs the conversion.