Struct makepad_micro_proc_macro::macro_lib::TokenBuilder
source · pub struct TokenBuilder {
pub groups: Vec<(Delimiter, TokenStream)>,
}
Fields§
§groups: Vec<(Delimiter, TokenStream)>
Implementations§
source§impl TokenBuilder
impl TokenBuilder
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn end(self) -> TokenStream
pub fn eprint(&self)
pub fn extend(&mut self, tt: TokenTree) -> &mut Self
pub fn stream(&mut self, what: Option<TokenStream>) -> &mut Self
pub fn add(&mut self, what: &str) -> &mut Self
pub fn ident(&mut self, id: &str) -> &mut Self
pub fn ident_with_span(&mut self, id: &str, span: Span) -> &mut Self
pub fn punct(&mut self, s: &str) -> &mut Self
pub fn lifetime_mark(&mut self) -> &mut Self
pub fn sep(&mut self) -> &mut Self
pub fn string(&mut self, val: &str) -> &mut Self
pub fn unsuf_usize(&mut self, val: usize) -> &mut Self
pub fn suf_u16(&mut self, val: u16) -> &mut Self
pub fn suf_u32(&mut self, val: u32) -> &mut Self
pub fn suf_u64(&mut self, val: u64) -> &mut Self
pub fn unsuf_f32(&mut self, val: f32) -> &mut Self
pub fn unsuf_f64(&mut self, val: f64) -> &mut Self
pub fn unsuf_i64(&mut self, val: i64) -> &mut Self
pub fn chr(&mut self, val: char) -> &mut Self
pub fn _lit(&mut self, lit: Literal) -> &mut Self
pub fn push_group(&mut self, delim: Delimiter) -> &mut Self
pub fn stack_as_string(&self) -> String
pub fn pop_group(&mut self, delim: Delimiter) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TokenBuilder
impl !Send for TokenBuilder
impl !Sync for TokenBuilder
impl Unpin for TokenBuilder
impl UnwindSafe for TokenBuilder
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