[−][src]Struct rustc_builtin_macros::proc_macro_harness::CollectProcMacros

pub(in proc_macro_harness) struct CollectProcMacros<'a> {
    sess: &'a Session,
    macros: Vec<ProcMacro>,
    in_root: bool,
    handler: &'a Handler,
    source_map: &'a SourceMap,
    is_proc_macro_crate: bool,
    is_test_crate: bool,
}

Fields

sess: &'a Sessionmacros: Vec<ProcMacro>in_root: boolhandler: &'a Handlersource_map: &'a SourceMapis_proc_macro_crate: boolis_test_crate: bool

Implementations

impl<'a> CollectProcMacros<'a>[src]

pub(in proc_macro_harness) fn check_not_pub_in_root(
    &self,
    vis: &Visibility,
    sp: Span
)
[src]

pub(in proc_macro_harness) fn collect_custom_derive(
    &mut self,
    item: &'a Item,
    attr: &'a Attribute
)
[src]

pub(in proc_macro_harness) fn collect_attr_proc_macro(
    &mut self,
    item: &'a Item
)
[src]

pub(in proc_macro_harness) fn collect_bang_proc_macro(
    &mut self,
    item: &'a Item
)
[src]

Trait Implementations

impl<'a> Visitor<'a> for CollectProcMacros<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for CollectProcMacros<'a>

impl<'a> !Send for CollectProcMacros<'a>

impl<'a> !Sync for CollectProcMacros<'a>

impl<'a> Unpin for CollectProcMacros<'a>

impl<'a> !UnwindSafe for CollectProcMacros<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.