Struct sqruff_lib::utils::reflow::elements::ReflowBlock
source · pub struct ReflowBlock {
pub segments: Vec<ErasedSegment>,
pub spacing_before: Spacing,
pub spacing_after: Spacing,
pub line_position: Option<Vec<LinePosition>>,
pub depth_info: DepthInfo,
pub stack_spacing_configs: IntMap<u64, Spacing>,
pub line_position_configs: IntMap<u64, &'static str>,
}Fields§
§segments: Vec<ErasedSegment>§spacing_before: Spacing§spacing_after: Spacing§line_position: Option<Vec<LinePosition>>§depth_info: DepthInfo§stack_spacing_configs: IntMap<u64, Spacing>§line_position_configs: IntMap<u64, &'static str>Implementations§
source§impl ReflowBlock
impl ReflowBlock
pub fn class_types(&self) -> SyntaxSet
source§impl ReflowBlock
impl ReflowBlock
pub fn from_config( segments: Vec<ErasedSegment>, config: &ReflowConfig, depth_info: DepthInfo, ) -> Self
Trait Implementations§
source§impl Clone for ReflowBlock
impl Clone for ReflowBlock
source§fn clone(&self) -> ReflowBlock
fn clone(&self) -> ReflowBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ReflowBlock
impl Debug for ReflowBlock
source§impl From<ReflowBlock> for ReflowElement
impl From<ReflowBlock> for ReflowElement
source§fn from(value: ReflowBlock) -> Self
fn from(value: ReflowBlock) -> Self
Converts to this type from the input type.
source§impl PartialEq<ReflowBlock> for ReflowElement
impl PartialEq<ReflowBlock> for ReflowElement
source§impl PartialEq for ReflowBlock
impl PartialEq for ReflowBlock
impl StructuralPartialEq for ReflowBlock
Auto Trait Implementations§
impl Freeze for ReflowBlock
impl !RefUnwindSafe for ReflowBlock
impl !Send for ReflowBlock
impl !Sync for ReflowBlock
impl Unpin for ReflowBlock
impl !UnwindSafe for ReflowBlock
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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