Struct sqruff_lib::utils::reflow::sequence::ReflowSequence
source · pub struct ReflowSequence { /* private fields */ }
Implementations§
source§impl ReflowSequence
impl ReflowSequence
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: &FluffConfig) -> Self
pub fn from_raw_segments( segments: Vec<ErasedSegment>, root_segment: ErasedSegment, config: &FluffConfig, depth_map: Option<DepthMap> ) -> Self
pub fn from_around_target( target_segment: &ErasedSegment, root_segment: ErasedSegment, sides: &str, config: &FluffConfig ) -> ReflowSequence
pub fn insert( self, insertion: ErasedSegment, target: ErasedSegment, pos: &'static str ) -> Self
pub fn without(self, target: &ErasedSegment) -> ReflowSequence
pub fn respace(self, strip_newlines: bool, filter: Filter) -> Self
pub fn rebreak(self) -> Self
pub fn replace(&mut self, target: ErasedSegment, edit: &[ErasedSegment]) -> Self
pub fn reindent(self) -> Self
pub fn break_long_lines(self) -> Self
pub fn elements(&self) -> &[ReflowElement]
Auto Trait Implementations§
impl Freeze for ReflowSequence
impl !RefUnwindSafe for ReflowSequence
impl Send for ReflowSequence
impl Sync for ReflowSequence
impl Unpin for ReflowSequence
impl !UnwindSafe for ReflowSequence
Blanket Implementations§
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