pub struct FormattedString<'a> {
pub parts: Vec<FormattedStringContent<'a>>,
pub start: &'a str,
pub end: &'a str,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
}
Fields§
§parts: Vec<FormattedStringContent<'a>>
§start: &'a str
§end: &'a str
§lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
Trait Implementations§
Source§impl<'a> Clone for FormattedString<'a>
impl<'a> Clone for FormattedString<'a>
Source§fn clone(&self) -> FormattedString<'a>
fn clone(&self) -> FormattedString<'a>
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<'a> Codegen<'a> for FormattedString<'a>
impl<'a> Codegen<'a> for FormattedString<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for FormattedString<'a>
impl<'a> Debug for FormattedString<'a>
Source§impl<'a> ParenthesizedNode<'a> for FormattedString<'a>
impl<'a> ParenthesizedNode<'a> for FormattedString<'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 FormattedString<'a>
impl<'a> PartialEq for FormattedString<'a>
impl<'a> Eq for FormattedString<'a>
impl<'a> StructuralPartialEq for FormattedString<'a>
Auto Trait Implementations§
impl<'a> Freeze for FormattedString<'a>
impl<'a> RefUnwindSafe for FormattedString<'a>
impl<'a> Send for FormattedString<'a>
impl<'a> Sync for FormattedString<'a>
impl<'a> Unpin for FormattedString<'a>
impl<'a> UnwindSafe for FormattedString<'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