pub(crate) trait AlignedItem {
// Required methods
fn skip(&self) -> bool;
fn get_span(&self) -> Span;
fn rewrite_prefix(
&self,
context: &RewriteContext<'_>,
shape: Shape,
) -> Result<String, RewriteError>;
fn rewrite_aligned_item(
&self,
context: &RewriteContext<'_>,
shape: Shape,
prefix_max_width: usize,
) -> Result<String, RewriteError>;
}Required Methods§
fn skip(&self) -> bool
fn get_span(&self) -> Span
fn rewrite_prefix( &self, context: &RewriteContext<'_>, shape: Shape, ) -> Result<String, RewriteError>
fn rewrite_aligned_item( &self, context: &RewriteContext<'_>, shape: Shape, prefix_max_width: usize, ) -> Result<String, RewriteError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".