[−][src]Enum rustc_expand::expand::AstFragmentKind
"Discriminant" of an AST fragment.
Variants
Implementations
impl AstFragmentKind[src]
pub fn name(self) -> &'static str[src]
pub(in expand) fn make_from<'a>(
self,
result: Box<dyn MacResult + 'a>
) -> Option<AstFragment>[src]
self,
result: Box<dyn MacResult + 'a>
) -> Option<AstFragment>
impl AstFragmentKind[src]
pub(crate) fn dummy(self, span: Span) -> AstFragment[src]
pub fn supports_macro_expansion(self) -> bool[src]
Fragment supports macro expansion and not just inert attributes, cfg and cfg_attr.
pub(in expand) fn expect_from_annotatables<I: IntoIterator<Item = Annotatable>>(
self,
items: I
) -> AstFragment[src]
self,
items: I
) -> AstFragment
Trait Implementations
impl Clone for AstFragmentKind[src]
pub fn clone(&self) -> AstFragmentKind[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for AstFragmentKind[src]
impl Eq for AstFragmentKind[src]
impl PartialEq<AstFragmentKind> for AstFragmentKind[src]
pub fn eq(&self, other: &AstFragmentKind) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for AstFragmentKind[src]
impl StructuralPartialEq for AstFragmentKind[src]
Auto Trait Implementations
impl RefUnwindSafe for AstFragmentKind
impl Send for AstFragmentKind
impl Sync for AstFragmentKind
impl Unpin for AstFragmentKind
impl UnwindSafe for AstFragmentKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,