pub enum StringSyntax {
CStyle,
Rust,
Python,
JavaScript,
Go,
Shell,
SwiftScala,
Sql,
Xml,
Php,
}Expand description
String syntax variants for different programming languages.
Variants§
CStyle
C-style strings: "..." with backslash escapes
Rust
Rust strings: "...", r#"..."#, b"..."
Python
Python strings: "...", '...', """...""", '''...'''
JavaScript
JavaScript strings: "...", '...', `...` (template literals)
Go
Go strings: "...", `...` (raw strings)
Shell
Shell strings: '...' (literal, no escapes), "..." (with escapes), $'...' (ANSI-C)
SwiftScala
Swift/Scala strings: "...", """...""" multi-line strings
Sql
SQL strings: '...' single quotes only
Xml
XML/HTML strings: "..." and '...' for attribute values
Php
PHP strings: '...' (literal) and "..." (with escapes)
Trait Implementations§
Source§impl Clone for StringSyntax
impl Clone for StringSyntax
Source§fn clone(&self) -> StringSyntax
fn clone(&self) -> StringSyntax
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringSyntax
impl Debug for StringSyntax
Source§impl PartialEq for StringSyntax
impl PartialEq for StringSyntax
impl Copy for StringSyntax
impl Eq for StringSyntax
impl StructuralPartialEq for StringSyntax
Auto Trait Implementations§
impl Freeze for StringSyntax
impl RefUnwindSafe for StringSyntax
impl Send for StringSyntax
impl Sync for StringSyntax
impl Unpin for StringSyntax
impl UnsafeUnpin for StringSyntax
impl UnwindSafe for StringSyntax
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