Enum syntax::ext::expand::AstFragmentKind [−][src]
pub enum AstFragmentKind { OptExpr, Expr, Pat, Ty, Stmts, Items, TraitItems, ImplItems, ForeignItems, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
"Discriminant" of an AST fragment.
Variants
OptExpr
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Expr
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Pat
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Ty
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Stmts
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Items
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
TraitItems
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ImplItems
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ForeignItems
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl AstFragmentKind
[src]
impl AstFragmentKind
pub fn name(self) -> &'static str
[src]
pub fn name(self) -> &'static str
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn make_from<'a>(self, result: Box<MacResult + 'a>) -> Option<AstFragment>
[src]
fn make_from<'a>(self, result: Box<MacResult + 'a>) -> Option<AstFragment>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl AstFragmentKind
[src]
impl AstFragmentKind
fn dummy(self, span: Span) -> Option<AstFragment>
[src]
fn dummy(self, span: Span) -> Option<AstFragment>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn expect_from_annotatables<I: IntoIterator<Item = Annotatable>>(
self,
items: I
) -> AstFragment
[src]
fn expect_from_annotatables<I: IntoIterator<Item = Annotatable>>(
self,
items: I
) -> AstFragment
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Copy for AstFragmentKind
[src]
impl Copy for AstFragmentKind
impl Clone for AstFragmentKind
[src]
impl Clone for AstFragmentKind
fn clone(&self) -> AstFragmentKind
[src]
fn clone(&self) -> AstFragmentKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for AstFragmentKind
[src]
impl PartialEq for AstFragmentKind
fn eq(&self, other: &AstFragmentKind) -> bool
[src]
fn eq(&self, other: &AstFragmentKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for AstFragmentKind
[src]
impl Eq for AstFragmentKind
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
Auto Trait Implementations
impl Send for AstFragmentKind
impl Send for AstFragmentKind
impl Sync for AstFragmentKind
impl Sync for AstFragmentKind