Home
last modified time | relevance | path

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

/third_party/rust/rust/library/core/src/str/
Derror.rs47 pub struct Utf8Error { struct
52 impl Utf8Error { implementation
112 impl fmt::Display for Utf8Error { implementation
127 impl Error for Utf8Error { implementation
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
Dvalidations.rs127 pub(super) const fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> { in run_utf8_validation() argument
/third_party/flatbuffers/rust/flexbuffers/src/
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()
/third_party/rust/rust/tests/ui/resolve/
Dissue-102946.rs1 impl Error for str::Utf8Error { implementation
/third_party/protobuf/rust/
Dstring.rs157 pub struct Utf8Error { struct
158 pub(crate) inner: std::str::Utf8Error, argument
160 impl std::fmt::Display for Utf8Error { implementation
166 impl std::error::Error for Utf8Error {} implementation
168 impl From<std::str::Utf8Error> for Utf8Error { implementation
169 fn from(inner: std::str::Utf8Error) -> Utf8Error { in from()
369 pub fn to_str(&self) -> Result<&str, Utf8Error> { in to_str() argument
479 fn try_from(val: &'msg ProtoStr) -> Result<&'msg str, Utf8Error> { in try_from() argument
487 fn try_from(val: &'msg [u8]) -> Result<&'msg ProtoStr, Utf8Error> { in try_from() argument
/third_party/rust/rust/compiler/rustc_driver_impl/src/
Dargs.rs39 Utf8Error(Option<String>), enumerator
/third_party/rust/rust/library/std/src/sys/windows/
Dos_str.rs174 pub fn to_str(&self) -> Result<&str, crate::str::Utf8Error> { in to_str()
/third_party/rust/crates/cxx/src/
Dcxx_string.rs140 pub fn to_str(&self) -> Result<&str, Utf8Error> { in to_str() argument
/third_party/rust/rust/library/core/src/ffi/
Dc_str.rs618 pub const fn to_str(&self) -> Result<&str, str::Utf8Error> { in to_str() argument
/third_party/rust/rust/library/std/src/sys/unix/
Dos_str.rs215 pub fn to_str(&self) -> Result<&str, crate::str::Utf8Error> { in to_str()
/third_party/flatbuffers/rust/flexbuffers/src/reader/
Dmod.rs67 Utf8Error(#[serde(skip)] Option<Box<std::str::Utf8Error>>), enumerator
/third_party/flatbuffers/rust/flatbuffers/src/
Dverifier.rs55 Utf8Error { enumerator
/third_party/rust/rust/library/alloc/src/ffi/
Dc_str.rs991 pub fn utf8_error(&self) -> Utf8Error { in utf8_error()
/third_party/rust/rust/library/std/src/sys_common/
Dwtf8.rs629 pub fn as_str(&self) -> Result<&str, str::Utf8Error> { in as_str() argument
/third_party/rust/rust/library/alloc/src/
Dstring.rs1954 pub fn utf8_error(&self) -> Utf8Error { in utf8_error()