Home
last modified time | relevance | path

Searched defs:Utf8Error (Results 1 – 25 of 74) sorted by relevance

123

/aosp_15_r20/external/rust/android-crates-io/crates/bstr/src/
Dutf8.rs406 pub struct Utf8Error { struct
411 impl Utf8Error { impl
451 impl error::Error for Utf8Error { implementation
457 impl fmt::Display for Utf8Error { implementation
467 pub fn validate(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
472 fn fast(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
506 fn find_valid_up_to(slice: &[u8], rejected_at: usize) -> Utf8Error { in validate()
527 fn slow(slice: &[u8]) -> Result<(), Utf8Error> { in validate() argument
863 fn utf8e(valid_up_to: usize) -> Utf8Error { in utf8e()
867 fn utf8e2(valid_up_to: usize, error_len: usize) -> Utf8Error { in utf8e2()
Dext_slice.rs272 fn to_str(&self) -> Result<&str, Utf8Error> { in to_str() argument
479 fn to_os_str(&self) -> Result<&OsStr, Utf8Error> { in to_os_str() argument
482 fn imp(bytes: &[u8]) -> Result<&OsStr, Utf8Error> { in to_os_str() argument
490 fn imp(bytes: &[u8]) -> Result<&OsStr, Utf8Error> { in to_os_str() argument
566 fn to_path(&self) -> Result<&Path, Utf8Error> { in to_path() argument
Dimpls.rs221 fn try_from(s: &'a BString) -> Result<&'a str, crate::Utf8Error> { in try_from()
662 fn try_from(s: &'a BStr) -> Result<&'a str, crate::Utf8Error> { in try_from()
672 fn try_from(s: &'a BStr) -> Result<String, crate::Utf8Error> { in try_from()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/core/src/str/
H A Derror.rs47 pub struct Utf8Error { struct
52 impl Utf8Error { argument
112 impl fmt::Display for Utf8Error { implementation
127 impl Error for Utf8Error { implementation
H A Dconverts.rs88 pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { in from_utf8() argument
132 pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> { in from_utf8_mut() argument
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/core/src/str/
H A Derror.rs47 pub struct Utf8Error { struct
52 impl Utf8Error { impl
112 impl fmt::Display for Utf8Error { implementation
127 impl Error for Utf8Error { implementation
H A Dconverts.rs88 pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { in from_utf8() argument
132 pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> { in from_utf8_mut() argument
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/core/src/str/
H A Derror.rs47 pub struct Utf8Error { struct
52 impl Utf8Error { argument
112 impl fmt::Display for Utf8Error { implementation
127 impl Error for Utf8Error { implementation
H A Dconverts.rs88 pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { in from_utf8() argument
132 pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> { in from_utf8_mut() argument
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/core/src/str/
H A Derror.rs47 pub struct Utf8Error { struct
52 impl Utf8Error { argument
112 impl fmt::Display for Utf8Error { implementation
127 impl Error for Utf8Error { implementation
H A Dconverts.rs88 pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { in from_utf8() argument
132 pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> { in from_utf8_mut() argument
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/core/src/str/
H A Derror.rs47 pub struct Utf8Error { struct
52 impl Utf8Error { implementation
112 impl fmt::Display for Utf8Error { implementation
127 impl Error for Utf8Error { implementation
H A Dconverts.rs88 pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> { in from_utf8() argument
132 pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error> { in from_utf8_mut() argument
/aosp_15_r20/external/rust/android-crates-io/crates/csv/src/
Derror.rs227 pub fn utf8_error(&self) -> &Utf8Error { in utf8_error()
252 pub struct Utf8Error { struct
260 pub fn new_utf8_error(field: usize, valid_up_to: usize) -> Utf8Error { in new_utf8_error()
264 impl Utf8Error { impl
275 impl StdError for Utf8Error {} implementation
277 impl fmt::Display for Utf8Error { implementation
/aosp_15_r20/external/flatbuffers/rust/flexbuffers/src/
H A Dbuffer.rs54 fn buffer_str(&self) -> Result<Self::BufferString, std::str::Utf8Error>; in buffer_str()
77 fn buffer_str(&self) -> Result<Self::BufferString, std::str::Utf8Error> { in buffer_str()
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/clap_lex-0.7.0/src/
H A Dext.rs8 fn try_str(&self) -> Result<&str, std::str::Utf8Error>; in try_str()
185 fn try_str(&self) -> Result<&str, std::str::Utf8Error> { in try_str()
/aosp_15_r20/external/rust/android-crates-io/crates/clap_lex/src/
Dext.rs9 fn try_str(&self) -> Result<&str, std::str::Utf8Error>; in try_str()
186 fn try_str(&self) -> Result<&str, std::str::Utf8Error> { in try_str()
/aosp_15_r20/external/rust/android-crates-io/crates/toml_edit/src/parser/
Dvalue.rs90 fn apply_raw(mut val: Value, span: std::ops::Range<usize>) -> Result<Value, std::str::Utf8Error> { in apply_raw()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/
Dext.rs30 pub(crate) fn try_from(bytes: Bytes) -> Result<Self, std::str::Utf8Error> { in try_from()
/aosp_15_r20/external/rust/android-crates-io/crates/protobuf/src/
Derror.rs23 Utf8Error, enumerator
Dchars.rs27 pub fn from_bytes(bytes: Bytes) -> Result<Chars, str::Utf8Error> { in from_bytes()
/aosp_15_r20/external/rust/android-crates-io/extra_versions/crates/protobuf/src/
Derror.rs28 Utf8Error, enumerator
Dchars.rs23 pub fn from_bytes(bytes: Bytes) -> Result<Chars, str::Utf8Error> { in from_bytes()
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio/src/security/
Dauth_context.rs136 pub fn value_str(&self) -> Result<&'a str, std::str::Utf8Error> { in value_str()
/aosp_15_r20/development/tools/external_crates/test_mapping/src/
H A Dlib.rs53 Utf8Error(#[from] Utf8Error), enumerator

123