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]
impl EscapePolicy
pub fn should_escape(&self, c: char) -> bool
[src]
pub 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 Debug for EscapePolicy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for EscapePolicy
[src]
impl PartialEq for EscapePolicy
fn eq(&self, other: &EscapePolicy) -> bool
[src]
fn eq(&self, other: &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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Copy for EscapePolicy
[src]
impl Copy for EscapePolicy
impl Clone for EscapePolicy
[src]
impl Clone for EscapePolicy
fn clone(&self) -> EscapePolicy
[src]
fn clone(&self) -> EscapePolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for EscapePolicy
impl Send for EscapePolicy
impl Sync for EscapePolicy
impl Sync for EscapePolicy