Trait rustfmt_nightly::vertical::AlignedItem
source · pub(crate) trait AlignedItem {
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
sourcefn rewrite_prefix(
fn rewrite_prefix(
&self,
context: &RewriteContext<'_>,
shape: Shape
) -> Option<String>
sourcefn rewrite_aligned_item(