[][src]Struct garando_syntax2::config::StripUnconfigured

pub struct StripUnconfigured<'a> {
    pub should_test: bool,
    pub sess: &'a ParseSess,
    pub features: Option<&'a Features>,
}

A folder that strips out items that do not belong in the current configuration.

Fields

should_test: boolsess: &'a ParseSessfeatures: Option<&'a Features>

Implementations

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

pub fn configure<T: HasAttrs>(&mut self, node: T) -> Option<T>[src]

pub fn process_cfg_attrs<T: HasAttrs>(&mut self, node: T) -> T[src]

pub fn in_cfg(&mut self, attrs: &[Attribute]) -> bool[src]

pub fn configure_foreign_mod(&mut self, foreign_mod: ForeignMod) -> ForeignMod[src]

pub fn configure_item_kind(&mut self, item: ItemKind) -> ItemKind[src]

pub fn configure_expr_kind(&mut self, expr_kind: ExprKind) -> ExprKind[src]

pub fn configure_expr(&mut self, expr: P<Expr>) -> P<Expr>[src]

pub fn configure_stmt(&mut self, stmt: Stmt) -> Option<Stmt>[src]

pub fn configure_struct_expr_field(&mut self, field: Field) -> Option<Field>[src]

pub fn configure_pat(&mut self, pattern: P<Pat>) -> P<Pat>[src]

Trait Implementations

impl<'a> Folder for StripUnconfigured<'a>[src]

Auto Trait Implementations

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

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

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

impl<'a> Unpin for StripUnconfigured<'a>

impl<'a> !UnwindSafe for StripUnconfigured<'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.