pub struct Punct(/* private fields */);展开描述
Punct 是一个单独的标点符号字符,例如 +、- 或 #。
多字符运算符如 += 表示为两个 Punct 实例,并返回不同的 Spacing 形式。
实现§
源代码§impl Punct
impl Punct
Trait 实现§
源代码§impl ToTokens for Punct
impl ToTokens for Punct
源代码§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
🔬这是一个仅限 nightly 的实验性 API。(
proc_macro_totokens #1309977)源代码§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
🔬这是一个仅限 nightly 的实验性 API。(
proc_macro_totokens #1309977)源代码§fn into_token_stream(self) -> TokenStreamwhere Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere Self: Sized,
🔬这是一个仅限 nightly 的实验性 API。(
proc_macro_totokens #1309977)impl !Send for Punct
impl !Sync for Punct
自动 Trait 实现§
Blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值中可变地借用。 阅读更多