Enum ini::ini::EscapePolicy
[−]
[src]
pub enum EscapePolicy { Nothing, Basics, BasicsUnicode, Reserved, ReservedUnicode, Everything, }
Variants
Nothing
escape absolutely nothing (dangerous)
Basics
only escape the most necessary things
BasicsUnicode
escape basics and non-ascii characters
Reserved
Escape reserved symbols.
ReservedUnicode
Escape reserved symbols and non-ascii characters
Everything
Escape everything that some INI implementations assume
Methods
impl EscapePolicy
[src]
fn should_escape(&self, c: char) -> bool
Given a character this returns true if it should be escaped as per this policy or false if not.
Trait Implementations
impl Debug for EscapePolicy
[src]
impl PartialEq for EscapePolicy
[src]
fn eq(&self, __arg_0: &EscapePolicy) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Copy for EscapePolicy
[src]
impl Clone for EscapePolicy
[src]
fn clone(&self) -> EscapePolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more