Module entity

Module entity 

Source
Expand description

The library main module.

Structs§

CharEntity
CharEntity struct
DataIter
DecodedData
DecodedData, impl the ICodedDataTrait and IBytesTrait and IntoIterator.
EncodedData
EncodedData, impl the ICodedDataTrait and IBytesTrait and IntoIterator.
Entity
Entity struct

Enums§

CharacterSet
The character set that needs to be encoded to html entity.
EncodeType
EncodeType: html entity encoding format
EntityType
HtmlEntityError

Traits§

IBytesTrait
ICodedDataTrait
ICodedDataTrait

Functions§

decode
Decode html entities in utf-8 bytes.
decode_chars
Decode the html entities in the character list.
decode_chars_to
Similar to the decode_chars method, but directly writes the character data into the last parameter passed in.
decode_to
Similar to the decode method, but directly writes the byte data into the last parameter passed in.
encode
Encode characters in the utf-8 bytes into html entities according to the specified encoding format and specified encoding character set.
encode_char
Encode character into html entity.
encode_chars_with
Encode a list of characters using a filter function.
encode_to
Similar to the encode method, but directly writes the byte data into the last parameter passed in.
encode_with
Encode the html entities in utf-8 bytes into encoded data, and specify the characters to be encoded and the encoding format through the filter_fn method parameter.
encode_with_to
Similar to the encode_with method, but directly writes the byte data into the last parameter passed in.