pub(crate) trait AlignedItem {
    // Required methods
    fn skip(&self) -> bool;
    fn get_span(&self) -> Span;
    fn rewrite_prefix(
        &self,
        context: &RewriteContext<'_>,
        shape: Shape
    ) -> Option<String>;
    fn rewrite_aligned_item(
        &self,
        context: &RewriteContext<'_>,
        shape: Shape,
        prefix_max_width: usize
    ) -> Option<String>;
}

Required Methods§

source

fn skip(&self) -> bool

source

fn get_span(&self) -> Span

source

fn rewrite_prefix( &self, context: &RewriteContext<'_>, shape: Shape ) -> Option<String>

source

fn rewrite_aligned_item( &self, context: &RewriteContext<'_>, shape: Shape, prefix_max_width: usize ) -> Option<String>

Implementations on Foreign Types§

source§

impl AlignedItem for FieldDef

source§

fn skip(&self) -> bool

source§

fn get_span(&self) -> Span

source§

fn rewrite_prefix( &self, context: &RewriteContext<'_>, shape: Shape ) -> Option<String>

source§

fn rewrite_aligned_item( &self, context: &RewriteContext<'_>, shape: Shape, prefix_max_width: usize ) -> Option<String>

source§

impl AlignedItem for ExprField

source§

fn skip(&self) -> bool

source§

fn get_span(&self) -> Span

source§

fn rewrite_prefix( &self, context: &RewriteContext<'_>, shape: Shape ) -> Option<String>

source§

fn rewrite_aligned_item( &self, context: &RewriteContext<'_>, shape: Shape, prefix_max_width: usize ) -> Option<String>

Implementors§