Enum rphtml::entity::CharacterSet
source · pub enum CharacterSet {
All = 1,
NonASCII = 2,
Html = 3,
SpecialChars = 4,
HtmlAndNonASCII = 5,
SpecialCharsAndNonASCII = 6,
}
Expand description
The character set that needs to be encoded to html entity.
Variants§
All = 1
all characters
NonASCII = 2
non ASCII, code point > 0xff
Html = 3
html: ‘<’,‘>’,‘&’
SpecialChars = 4
special characters: ‘<’,‘>’,‘&’, ‘'’, ‘“’
HtmlAndNonASCII = 5
html and non ascii
SpecialCharsAndNonASCII = 6
special characters and non ascii
Implementations§
source§impl CharacterSet
impl CharacterSet
Trait Implementations§
source§impl Default for CharacterSet
impl Default for CharacterSet
source§fn default() -> CharacterSet
fn default() -> CharacterSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CharacterSet
impl RefUnwindSafe for CharacterSet
impl Send for CharacterSet
impl Sync for CharacterSet
impl Unpin for CharacterSet
impl UnwindSafe for CharacterSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more