Searched refs:EncodingError (Results 1 – 11 of 11) sorted by relevance
17 pub(super) struct EncodingError(Utf8Error); struct19 impl Display for EncodingError { implementation25 impl Error for EncodingError {} implementation27 type Result<T> = result::Result<T, EncodingError>;39 str::from_utf8(string).map_err(EncodingError) in from_bytes()53 .map_err(|x| EncodingError(x.utf8_error())) in os_string_from_vec()
1 use super::EncodingError;5 use EncodingError::Byte; in test_invalid()6 use EncodingError::CodePoint; in test_invalid()7 use EncodingError::End; in test_invalid()10 fn test(error: EncodingError, string: &[u8]) { in test_invalid() argument
29 pub(super) enum EncodingError { enum35 impl EncodingError { impl47 impl Display for EncodingError { implementation58 impl Error for EncodingError {} implementation60 type Result<T> = result::Result<T, EncodingError>;
9 use super::EncodingError;41 let &byte = self.iter.peek().ok_or(EncodingError::End())?; in consume_next()47 return Err(EncodingError::Byte(byte)); in consume_next()91 return Some(Err(EncodingError::Byte(byte))); in next()124 return Some(Err(EncodingError::CodePoint(code_point))); in next()
4 use super::EncodingError;
297 pub struct EncodingError(imp::EncodingError);300 impl Display for EncodingError { implementation307 impl Error for EncodingError {} implementation309 type Result<T> = result::Result<T, EncodingError>;313 ) -> result::Result<Cow<'a, OsStr>, imp::EncodingError> in from_raw_bytes()440 from_raw_bytes(string).map_err(EncodingError) in from_raw_bytes()572 imp::os_string_from_vec(string).map_err(EncodingError) in from_raw_vec()
35 use super::EncodingError;234 .map_err(EncodingError)1101 .map_err(EncodingError)
25 pub(super) type EncodingError = Infallible; typedef27 type Result<T> = result::Result<T, EncodingError>;
20 use os_str_bytes::EncodingError;26 pub(crate) type Result<T> = result::Result<T, EncodingError>;
46 static Napi::Error EncodingError(Napi::Env);
139 Napi::Error Errors::EncodingError(Napi::Env env) { in EncodingError() function in wgpu::binding::Errors