Enum proc_macro::Delimiter1.29.0[][src]

pub enum Delimiter {
    Parenthesis,
    Brace,
    Bracket,
    None,
}
Expand description

描述如何分隔 token 树的序列。

Variants

Parenthesis

( ... )

Brace

{ ... }

Bracket

[ ... ]

None

Ø ... Ø 一个隐式定界符,例如,可能出现在来自 “macro variable” $var 的 tokens 周围。 在诸如 $var1 + 2$var * 3 之类的情况下,保留操作员的优先级很重要。 隐式定界符可能无法在 token 流通过字符串的往返过程中幸免。

Trait Implementations

返回值的副本。 Read more

source 执行复制分配。 Read more

使用给定的格式化程序格式化该值。 Read more

此方法测试 selfother 值是否相等,并由 == 使用。 Read more

此方法测试 !=

Auto Trait Implementations

Blanket Implementations

获取 selfTypeIdRead more

从拥有的值中一成不变地借用。 Read more

从拥有的值中借用。 Read more

执行转换。

执行转换。

获得所有权后的结果类型。

通常通过克隆从借用数据中创建拥有的数据。 Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)

recently added

使用借来的数据来替换拥有的数据,通常是通过克隆。 Read more

发生转换错误时返回的类型。

执行转换。

发生转换错误时返回的类型。

执行转换。