Enum ress::StringLit [−][src]
Variants
Single(String)
Double(String)
Methods
impl StringLit
[src]
impl StringLit
pub fn single(content: &str) -> Self
[src]
pub fn single(content: &str) -> Self
pub fn double(content: &str) -> Self
[src]
pub fn double(content: &str) -> Self
pub fn is_single(&self) -> bool
[src]
pub fn is_single(&self) -> bool
pub fn is_double(&self) -> bool
[src]
pub fn is_double(&self) -> bool
pub fn no_quote(&self) -> String
[src]
pub fn no_quote(&self) -> String
Trait Implementations
impl Debug for StringLit
[src]
impl Debug for StringLit
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 StringLit
[src]
impl PartialEq for StringLit
fn eq(&self, other: &StringLit) -> bool
[src]
fn eq(&self, other: &StringLit) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StringLit) -> bool
[src]
fn ne(&self, other: &StringLit) -> bool
This method tests for !=
.
impl Clone for StringLit
[src]
impl Clone for StringLit
fn clone(&self) -> StringLit
[src]
fn clone(&self) -> StringLit
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
impl ToString for StringLit
[src]
impl ToString for StringLit