rustfmt_nightly::pairs

Trait FlattenPair

Source
trait FlattenPair: Rewrite + Sized {
    // Provided method
    fn flatten(
        &self,
        _: &RewriteContext<'_>,
        _: Shape,
    ) -> Option<PairList<'_, '_, Self>> { ... }
}

Provided Methods§

Source

fn flatten( &self, _: &RewriteContext<'_>, _: Shape, ) -> Option<PairList<'_, '_, Self>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FlattenPair for Expr

Source§

fn flatten( &self, context: &RewriteContext<'_>, shape: Shape, ) -> Option<PairList<'_, '_, Expr>>

Source§

impl FlattenPair for Pat

Source§

impl FlattenPair for Ty

Implementors§