pub struct Integer<'a> {
pub value: &'a str,
pub lpar: Vec<LeftParen<'a>>,
pub rpar: Vec<RightParen<'a>>,
}
Fields§
§value: &'a str
A string representation of the integer, such as "100000"
or
"100_000"
.
lpar: Vec<LeftParen<'a>>
§rpar: Vec<RightParen<'a>>
Trait Implementations§
Source§impl<'a> ParenthesizedNode<'a> for Integer<'a>
impl<'a> ParenthesizedNode<'a> for Integer<'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>),
impl<'a> Eq for Integer<'a>
impl<'a> StructuralPartialEq for Integer<'a>
Auto Trait Implementations§
impl<'a> Freeze for Integer<'a>
impl<'a> RefUnwindSafe for Integer<'a>
impl<'a> Send for Integer<'a>
impl<'a> Sync for Integer<'a>
impl<'a> Unpin for Integer<'a>
impl<'a> UnwindSafe for Integer<'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