Home
last modified time | relevance | path

Searched refs:Utf8Error (Results 1 – 24 of 24) sorted by relevance

/external/rust/crates/csv/src/
Derror.rs71 err: Utf8Error,
225 err: Utf8Error,
230 pub(crate) fn new(rec: ByteRecord, err: Utf8Error) -> FromUtf8Error { in new()
240 pub fn utf8_error(&self) -> &Utf8Error { in utf8_error() argument
265 pub struct Utf8Error { struct
273 pub fn new_utf8_error(field: usize, valid_up_to: usize) -> Utf8Error { in new_utf8_error() argument
274 Utf8Error { field: field, valid_up_to: valid_up_to } in new_utf8_error()
277 impl Utf8Error { impl
288 impl StdError for Utf8Error {} implementation
290 impl fmt::Display for Utf8Error { implementation
Dlib.rs159 Error, ErrorKind, FromUtf8Error, IntoInnerError, Result, Utf8Error,
Dbyte_record.rs11 use crate::error::{new_utf8_error, Result, Utf8Error};
542 pub(crate) fn validate(&self) -> result::Result<(), Utf8Error> { in validate() argument
Dreader.rs11 use crate::error::{Error, ErrorKind, Result, Utf8Error};
786 string_record: result::Result<StringRecord, Utf8Error>,
Ddeserializer.rs678 InvalidUtf8(str::Utf8Error),
/external/rust/crates/protobuf/src/
Derror.rs28 Utf8Error, enumerator
42 WireError::Utf8Error => write!(f, "invalid UTF-8 sequence"), in fmt()
64 Utf8(str::Utf8Error),
99 WireError::Utf8Error => "invalid UTF-8 sequence", in description()
131 impl From<str::Utf8Error> for ProtobufError {
132 fn from(err: str::Utf8Error) -> Self { in from()
Dchars.rs23 pub fn from_bytes(bytes: Bytes) -> Result<Chars, str::Utf8Error> { in from_bytes() argument
Dcoded_input_stream.rs693 Err(_) => return Err(ProtobufError::WireError(WireError::Utf8Error)), in read_string_into()
/external/rust/crates/rusqlite/src/
Derror.rs33 Utf8Error(str::Utf8Error), enumerator
128 (Error::Utf8Error(e1), Error::Utf8Error(e2)) => e1 == e2, in eq()
167 impl From<str::Utf8Error> for Error {
168 fn from(err: str::Utf8Error) -> Error { in from()
169 Error::Utf8Error(err) in from()
232 Error::Utf8Error(ref err) => err.fmt(f), in fmt()
284 Error::Utf8Error(ref err) => Some(err), in source()
/external/rust/crates/bstr/src/
Dutf8.rs410 pub struct Utf8Error { struct
415 impl Utf8Error { implementation
455 impl error::Error for Utf8Error { implementation
461 impl fmt::Display for Utf8Error { implementation
471 pub fn validate(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
476 fn fast(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
510 fn find_valid_up_to(slice: &[u8], rejected_at: usize) -> Utf8Error { in validate() argument
531 fn slow(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
541 return Err(Utf8Error { valid_up_to, error_len }); in validate()
545 Err(Utf8Error { valid_up_to, error_len: None }) in validate()
[all …]
Dext_vec.rs15 use utf8::{self, Utf8Error};
965 err: Utf8Error,
1029 pub fn utf8_error(&self) -> &Utf8Error { in utf8_error() argument
Dlib.rs406 Chars, Utf8Chunk, Utf8Chunks, Utf8Error,
Dext_slice.rs23 use utf8::{self, CharIndices, Chars, Utf8Chunks, Utf8Error};
247 fn to_str(&self) -> Result<&str, Utf8Error> { in to_str() argument
451 fn to_os_str(&self) -> Result<&OsStr, Utf8Error> { in to_os_str() argument
454 fn imp(bytes: &[u8]) -> Result<&OsStr, Utf8Error> { in to_os_str() argument
462 fn imp(bytes: &[u8]) -> Result<&OsStr, Utf8Error> { in to_os_str() argument
535 fn to_path(&self) -> Result<&Path, Utf8Error> { in to_path() argument
/external/crosvm/rutabaga_gfx/src/
Drutabaga_utils.rs12 use std::str::Utf8Error;
163 Utf8Error(Utf8Error), enumerator
217 Utf8Error(e) => write!(f, "an utf8 error occured: {}", e), in fmt()
251 impl From<Utf8Error> for RutabagaError {
252 fn from(e: Utf8Error) -> RutabagaError { in from()
253 RutabagaError::Utf8Error(e) in from()
/external/adhd/cros_alsa/src/
Dcontrol_primitive.rs63 Utf8Error(str::Utf8Error), enumerator
82 Utf8Error(e) => write!(f, "{}", e), in fmt()
93 impl From<str::Utf8Error> for Error {
94 fn from(err: str::Utf8Error) -> Error { in from()
95 Error::Utf8Error(err) in from()
/external/rust/cxx/src/
Dcxx_string.rs11 use core::str::{self, Utf8Error};
133 pub fn to_str(&self) -> Result<&str, Utf8Error> { in to_str() argument
/external/rust/cxx/gen/src/
Derror.rs14 use std::str::Utf8Error;
22 Utf8(PathBuf, Utf8Error),
/external/rust/crates/grpcio/src/
Dauth_context.rs136 pub fn value_str(&self) -> Result<&'a str, std::str::Utf8Error> { in value_str() argument
/external/rust/crates/nom/tests/
Dnamed_args.rs46 fn byte_slice_to_str<'a>(s: &'a[u8]) -> Result<&'a str, str::Utf8Error> { in byte_slice_to_str() argument
Dini.rs19 fn complete_byte_slice_to_str<'a>(s: &'a[u8]) -> Result<&'a str, str::Utf8Error> { in complete_byte_slice_to_str() argument
/external/rust/crates/bstr/
DREADME.md211 [`Utf8Error`](https://doc.rust-lang.org/std/str/struct.Utf8Error.html)
216 implemented for `&str` types. One could use `Utf8Error` above to implement
/external/rust/crates/percent-encoding/
Dlib.rs405 pub fn decode_utf8(self) -> Result<Cow<'a, str>, str::Utf8Error> { in decode_utf8() argument
/external/crosvm/devices/src/virtio/
Dwl.rs282 InvalidString(std::str::Utf8Error),
/external/crosvm/disk/src/qcow/
Dmod.rs40 InvalidBackingFileName(str::Utf8Error),