core::encoding
API 参考只有英文版,由标准库源代码中的英文文档注释生成。
bytes as text (RFC 4648): hex and base64.
Encoders return str or fill a SliceMut<u8>; decoders return
List<u8> or fill a SliceMut<u8>, and throw DecodeError naming
the byte offset of the first problem.
Modules
Structs
DecodeErrorSource
pub struct DecodeErrorText that hex::decode or base64::decode cannot decode.
Sourcepub const fn kind(§self) -> DecodeErrorKind What kind of input was rejected.
The byte offset in the text where decoding failed.
What went wrong and what to write instead.
Enums
DecodeErrorKindSource
pub enum DecodeErrorKindWhat a DecodeError is about.
A byte that is not in the alphabet.
A text whose length no encoded text has.
Padding where the codec takes none, missing where it needs it, or of the wrong length.