Home
last modified time | relevance | path

Searched refs:EncodingError (Results 1 – 11 of 11) sorted by relevance

/third_party/rust/crates/os_str_bytes/src/wasm/
Dmod.rs17 pub(super) struct EncodingError(Utf8Error); struct
19 impl Display for EncodingError { implementation
25 impl Error for EncodingError {} implementation
27 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()
/third_party/rust/crates/os_str_bytes/src/windows/
Dtests.rs1 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
Dmod.rs29 pub(super) enum EncodingError { enum
35 impl EncodingError { impl
47 impl Display for EncodingError { implementation
58 impl Error for EncodingError {} implementation
60 type Result<T> = result::Result<T, EncodingError>;
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/
Dcode_points.rs9 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()
Dmod.rs4 use super::EncodingError;
/third_party/rust/crates/os_str_bytes/src/
Dlib.rs297 pub struct EncodingError(imp::EncodingError);
300 impl Display for EncodingError { implementation
307 impl Error for EncodingError {} implementation
309 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()
Draw_str.rs35 use super::EncodingError;
234 .map_err(EncodingError)
1101 .map_err(EncodingError)
/third_party/rust/crates/os_str_bytes/src/common/
Dmod.rs25 pub(super) type EncodingError = Infallible; typedef
27 type Result<T> = result::Result<T, EncodingError>;
/third_party/rust/crates/os_str_bytes/tests/
Dcommon.rs20 use os_str_bytes::EncodingError;
26 pub(crate) type Result<T> = result::Result<T, EncodingError>;
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DErrors.h46 static Napi::Error EncodingError(Napi::Env);
DErrors.cpp139 Napi::Error Errors::EncodingError(Napi::Env env) { in EncodingError() function in wgpu::binding::Errors