Struct sqruff_lib::utils::reflow::sequence::ReflowSequence
source · pub struct ReflowSequence<'a> { /* private fields */ }Implementations§
source§impl<'a> ReflowSequence<'a>
impl<'a> ReflowSequence<'a>
pub fn raw(&self) -> String
pub fn results(self) -> Vec<LintResult>
pub fn fixes(self) -> Vec<LintFix>
pub fn from_root(root_segment: ErasedSegment, config: &'a FluffConfig) -> Self
pub fn from_raw_segments( segments: Vec<ErasedSegment>, root_segment: ErasedSegment, config: &'a FluffConfig, depth_map: Option<DepthMap>, ) -> ReflowSequence<'a>
pub fn from_around_target( target_segment: &ErasedSegment, root_segment: ErasedSegment, sides: TargetSide, config: &'a FluffConfig, ) -> ReflowSequence<'a>
pub fn insert( self, insertion: ErasedSegment, target: ErasedSegment, pos: ReflowInsertPosition, ) -> Self
pub fn without(self, target: &ErasedSegment) -> ReflowSequence<'a>
pub fn respace( self, tables: &Tables, strip_newlines: bool, filter: Filter, ) -> Self
pub fn rebreak(self, tables: &Tables) -> Self
pub fn replace(&mut self, target: ErasedSegment, edit: &[ErasedSegment]) -> Self
pub fn reindent(self, tables: &Tables) -> Self
pub fn break_long_lines(self, tables: &Tables) -> Self
pub fn elements(&self) -> &[ReflowElement]
Auto Trait Implementations§
impl<'a> Freeze for ReflowSequence<'a>
impl<'a> !RefUnwindSafe for ReflowSequence<'a>
impl<'a> !Send for ReflowSequence<'a>
impl<'a> !Sync for ReflowSequence<'a>
impl<'a> Unpin for ReflowSequence<'a>
impl<'a> !UnwindSafe for ReflowSequence<'a>
Blanket Implementations§
source§impl<T> AsAnyMut for Twhere
T: Any,
impl<T> AsAnyMut for Twhere
T: Any,
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more