René's URL Explorer Experiment


Title: FromUtf16Error in alloc::string - Rust

Description: A possible error value when converting a `String` from a UTF-16 byte slice.

Generator: rustdoc

direct link

Domain: doc.rust-lang.org

IPv4 address: 13.226.38.40

Links:

Skip to main contenthttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#main-content
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
https://doc.rust-lang.org/alloc/index.html
allochttps://doc.rust-lang.org/alloc/index.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
Sectionshttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
Exampleshttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#examples
Trait Implementationshttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#trait-implementations
Debughttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Debug-for-FromUtf16Error
Displayhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Display-for-FromUtf16Error
Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Error-for-FromUtf16Error
Auto Trait Implementationshttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#synthetic-implementations
Freezehttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Freeze-for-FromUtf16Error
RefUnwindSafehttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-RefUnwindSafe-for-FromUtf16Error
Sendhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Send-for-FromUtf16Error
Synchttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Sync-for-FromUtf16Error
Unpinhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Unpin-for-FromUtf16Error
UnsafeUnpinhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-UnsafeUnpin-for-FromUtf16Error
UnwindSafehttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-UnwindSafe-for-FromUtf16Error
Blanket Implementationshttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#blanket-implementations
Anyhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Any-for-T
Borrowhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Borrow%3CT%3E-for-T
BorrowMuthttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-BorrowMut%3CT%3E-for-T
Fromhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-From%3CT%3E-for-T
Intohttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Into%3CU%3E-for-T
ToStringhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-ToString-for-T
TryFromhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-TryFrom%3CU%3E-for-T
TryIntohttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-TryInto%3CU%3E-for-T
In alloc::stringhttps://doc.rust-lang.org/alloc/string/index.html
allochttps://doc.rust-lang.org/alloc/index.html
stringhttps://doc.rust-lang.org/alloc/string/index.html
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#413-415
from_utf16https://doc.rust-lang.org/alloc/string/struct.String.html#method.from_utf16
Stringhttps://doc.rust-lang.org/alloc/string/struct.String.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#examples
https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn+main()+%7B%0A++++//+%F0%9D%84%9Emu%3Cinvalid%3Eic%0A++++let+v+=+%26%5B0xD834,+0xDD1E,+0x006d,+0x0075,%0A++++++++++++++0xD800,+0x0069,+0x0063%5D;%0A++++%0A++++assert!(String::from_utf16(v).is_err());%0A%7D&edition=2024
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#trait-implementations
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#412
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Debug-for-FromUtf16Error
Debughttps://doc.rust-lang.org/alloc/fmt/trait.Debug.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#412
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.fmt
fmthttps://doc.rust-lang.org/alloc/fmt/trait.Debug.html#tymethod.fmt
Formatterhttps://doc.rust-lang.org/alloc/fmt/struct.Formatter.html
Resulthttps://doc.rust-lang.org/alloc/fmt/type.Result.html
Read morehttps://doc.rust-lang.org/alloc/fmt/trait.Debug.html#tymethod.fmt
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#2410-2418
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Display-for-FromUtf16Error
Displayhttps://doc.rust-lang.org/alloc/fmt/trait.Display.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#2411-2417
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.fmt-1
fmthttps://doc.rust-lang.org/alloc/fmt/trait.Display.html#tymethod.fmt
Formatterhttps://doc.rust-lang.org/alloc/fmt/struct.Formatter.html
Resulthttps://doc.rust-lang.org/alloc/fmt/type.Result.html
Read morehttps://doc.rust-lang.org/alloc/fmt/trait.Display.html#tymethod.fmt
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#2424
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Error-for-FromUtf16Error
Errorhttps://doc.rust-lang.org/core/error/trait.Error.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
Sourcehttps://doc.rust-lang.org/src/core/error.rs.html#111
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.source
sourcehttps://doc.rust-lang.org/core/error/trait.Error.html#method.source
Optionhttps://doc.rust-lang.org/core/option/enum.Option.html
Errorhttps://doc.rust-lang.org/core/error/trait.Error.html
Read morehttps://doc.rust-lang.org/core/error/trait.Error.html#method.source
Sourcehttps://doc.rust-lang.org/src/core/error.rs.html#137
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.description
descriptionhttps://doc.rust-lang.org/core/error/trait.Error.html#method.description
strhttps://doc.rust-lang.org/core/primitive.str.html
Read morehttps://doc.rust-lang.org/core/error/trait.Error.html#method.description
Sourcehttps://doc.rust-lang.org/src/core/error.rs.html#147
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.cause
causehttps://doc.rust-lang.org/core/error/trait.Error.html#method.cause
Optionhttps://doc.rust-lang.org/core/option/enum.Option.html
Errorhttps://doc.rust-lang.org/core/error/trait.Error.html
Sourcehttps://doc.rust-lang.org/src/core/error.rs.html#260
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.provide
providehttps://doc.rust-lang.org/core/error/trait.Error.html#method.provide
Requesthttps://doc.rust-lang.org/core/error/struct.Request.html
#99301https://github.com/rust-lang/rust/issues/99301
Read morehttps://doc.rust-lang.org/core/error/trait.Error.html#method.provide
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#synthetic-implementations
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Freeze-for-FromUtf16Error
Freezehttps://doc.rust-lang.org/core/marker/trait.Freeze.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-RefUnwindSafe-for-FromUtf16Error
RefUnwindSafehttps://doc.rust-lang.org/core/panic/unwind_safe/trait.RefUnwindSafe.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Send-for-FromUtf16Error
Sendhttps://doc.rust-lang.org/core/marker/trait.Send.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Sync-for-FromUtf16Error
Synchttps://doc.rust-lang.org/core/marker/trait.Sync.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Unpin-for-FromUtf16Error
Unpinhttps://doc.rust-lang.org/core/marker/trait.Unpin.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-UnsafeUnpin-for-FromUtf16Error
UnsafeUnpinhttps://doc.rust-lang.org/core/marker/trait.UnsafeUnpin.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-UnwindSafe-for-FromUtf16Error
UnwindSafehttps://doc.rust-lang.org/core/panic/unwind_safe/trait.UnwindSafe.html
FromUtf16Errorhttps://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#blanket-implementations
Sourcehttps://doc.rust-lang.org/src/core/any.rs.html#141
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Any-for-T
Anyhttps://doc.rust-lang.org/core/any/trait.Any.html
Sizedhttps://doc.rust-lang.org/core/marker/trait.Sized.html
Sourcehttps://doc.rust-lang.org/src/core/any.rs.html#142
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.type_id
type_idhttps://doc.rust-lang.org/core/any/trait.Any.html#tymethod.type_id
TypeIdhttps://doc.rust-lang.org/core/any/struct.TypeId.html
Read morehttps://doc.rust-lang.org/core/any/trait.Any.html#tymethod.type_id
Sourcehttps://doc.rust-lang.org/src/core/borrow.rs.html#212
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Borrow%3CT%3E-for-T
Borrowhttps://doc.rust-lang.org/alloc/borrow/trait.Borrow.html
Sizedhttps://doc.rust-lang.org/core/marker/trait.Sized.html
Sourcehttps://doc.rust-lang.org/src/core/borrow.rs.html#214
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.borrow
borrowhttps://doc.rust-lang.org/alloc/borrow/trait.Borrow.html#tymethod.borrow
&Thttps://doc.rust-lang.org/core/primitive.reference.html
Read morehttps://doc.rust-lang.org/alloc/borrow/trait.Borrow.html#tymethod.borrow
Sourcehttps://doc.rust-lang.org/src/core/borrow.rs.html#221
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-BorrowMut%3CT%3E-for-T
BorrowMuthttps://doc.rust-lang.org/alloc/borrow/trait.BorrowMut.html
Sizedhttps://doc.rust-lang.org/core/marker/trait.Sized.html
Sourcehttps://doc.rust-lang.org/src/core/borrow.rs.html#222
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.borrow_mut
borrow_muthttps://doc.rust-lang.org/alloc/borrow/trait.BorrowMut.html#tymethod.borrow_mut
&mut Thttps://doc.rust-lang.org/core/primitive.reference.html
Read morehttps://doc.rust-lang.org/alloc/borrow/trait.BorrowMut.html#tymethod.borrow_mut
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#787
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-From%3CT%3E-for-T
Fromhttps://doc.rust-lang.org/core/convert/trait.From.html
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#790
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.from
fromhttps://doc.rust-lang.org/core/convert/trait.From.html#tymethod.from
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#769-771
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-Into%3CU%3E-for-T
Intohttps://doc.rust-lang.org/core/convert/trait.Into.html
Fromhttps://doc.rust-lang.org/core/convert/trait.From.html
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#779
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.into
intohttps://doc.rust-lang.org/core/convert/trait.Into.html#tymethod.into
Fromhttps://doc.rust-lang.org/core/convert/trait.From.html
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#2967-2972
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-ToString-for-T
ToStringhttps://doc.rust-lang.org/alloc/string/trait.ToString.html
Displayhttps://doc.rust-lang.org/alloc/fmt/trait.Display.html
Sizedhttps://doc.rust-lang.org/core/marker/trait.Sized.html
Sourcehttps://doc.rust-lang.org/src/alloc/string.rs.html#2969-2971
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.to_string
to_stringhttps://doc.rust-lang.org/alloc/string/trait.ToString.html#tymethod.to_string
Stringhttps://doc.rust-lang.org/alloc/string/struct.String.html
Read morehttps://doc.rust-lang.org/alloc/string/trait.ToString.html#tymethod.to_string
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#814-816
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-TryFrom%3CU%3E-for-T
TryFromhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html
Intohttps://doc.rust-lang.org/core/convert/trait.Into.html
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#818
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#associatedtype.Error
Errorhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html#associatedtype.Error
!https://doc.rust-lang.org/core/primitive.never.html
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#821
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.try_from
try_fromhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html#tymethod.try_from
Resulthttps://doc.rust-lang.org/core/result/enum.Result.html
!https://doc.rust-lang.org/core/primitive.never.html
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#798-800
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#impl-TryInto%3CU%3E-for-T
TryIntohttps://doc.rust-lang.org/core/convert/trait.TryInto.html
TryFromhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#802
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#associatedtype.Error-1
Errorhttps://doc.rust-lang.org/core/convert/trait.TryInto.html#associatedtype.Error
TryFromhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html
Errorhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html#associatedtype.Error
Sourcehttps://doc.rust-lang.org/src/core/convert/mod.rs.html#805
§https://doc.rust-lang.org/alloc/string/struct.FromUtf16Error.html#method.try_into
try_intohttps://doc.rust-lang.org/core/convert/trait.TryInto.html#tymethod.try_into
Resulthttps://doc.rust-lang.org/core/result/enum.Result.html
TryFromhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html
Errorhttps://doc.rust-lang.org/core/convert/trait.TryFrom.html#associatedtype.Error

Response headers:
ServerAmazonS3
Content-Typetext/html
Via1.1 8424e407aa7050666572e0f6e0a7041a.cloudfront.net (CloudFront)
Last-ModifiedThu, 12 Nov 2026 18:12:09 GMT

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.