Enum syntax::ast::StrStyle [−][src]
pub enum StrStyle {
Cooked,
Raw(u16),
}Variants
CookedA regular string, like "foo"
Raw(u16)A raw string, like r##"foo"##
The value is the number of # symbols used.
Trait Implementations
impl Clone for StrStyle[src]
impl Clone for StrStylefn clone(&self) -> StrStyle[src]
fn clone(&self) -> StrStyleReturns 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 Encodable for StrStyle[src]
impl Encodable for StrStyleimpl Decodable for StrStyle[src]
impl Decodable for StrStyleimpl Debug for StrStyle[src]
impl Debug for StrStylefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for StrStyle[src]
impl Copy for StrStyleimpl Hash for StrStyle[src]
impl Hash for StrStylefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for StrStyle[src]
impl PartialEq for StrStyle