Struct libcst_native::SimpleString
source · pub struct SimpleString<'a> {
pub value: &'a str,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
}
Fields§
§value: &'a str
The texual representation of the string, including quotes, prefix
characters, and any escape characters present in the original source code,
such as r"my string\n"
.
lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
Trait Implementations§
source§impl<'a> Clone for SimpleString<'a>
impl<'a> Clone for SimpleString<'a>
source§fn clone(&self) -> SimpleString<'a>
fn clone(&self) -> SimpleString<'a>
Returns a copy 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<'a> Codegen<'a> for SimpleString<'a>
impl<'a> Codegen<'a> for SimpleString<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
source§impl<'a> Debug for SimpleString<'a>
impl<'a> Debug for SimpleString<'a>
source§impl<'a> Default for SimpleString<'a>
impl<'a> Default for SimpleString<'a>
source§fn default() -> SimpleString<'a>
fn default() -> SimpleString<'a>
Returns the “default value” for a type. Read more
source§impl<'a> ParenthesizedNode<'a> for SimpleString<'a>
impl<'a> ParenthesizedNode<'a> for SimpleString<'a>
fn lpar(&self) -> &Vec<LeftParen<'a>>
fn rpar(&self) -> &Vec<RightParen<'a>>
fn with_parens(self, left: LeftParen<'a>, right: RightParen<'a>) -> Self
fn parenthesize<F>(&self, state: &mut CodegenState<'a>, f: F)where
F: FnOnce(&mut CodegenState<'a>),
source§impl<'a> PartialEq for SimpleString<'a>
impl<'a> PartialEq for SimpleString<'a>
source§fn eq(&self, other: &SimpleString<'a>) -> bool
fn eq(&self, other: &SimpleString<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for SimpleString<'a>
impl<'a> StructuralPartialEq for SimpleString<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SimpleString<'a>
impl<'a> Send for SimpleString<'a>
impl<'a> Sync for SimpleString<'a>
impl<'a> Unpin for SimpleString<'a>
impl<'a> UnwindSafe for SimpleString<'a>
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