Struct sqruff_lib::utils::reflow::elements::ReflowBlock
source · pub struct ReflowBlock {
pub segments: Vec<Box<dyn Segment>>,
pub spacing_before: String,
pub spacing_after: String,
pub line_position: Option<String>,
pub depth_info: DepthInfo,
pub stack_spacing_configs: HashMap<u64, String>,
}
Fields§
§segments: Vec<Box<dyn Segment>>
§spacing_before: String
§spacing_after: String
§line_position: Option<String>
§depth_info: DepthInfo
§stack_spacing_configs: HashMap<u64, String>
Implementations§
source§impl ReflowBlock
impl ReflowBlock
pub fn from_config( segments: Vec<Box<dyn Segment>>, 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§fn eq(&self, other: &ReflowBlock) -> bool
fn eq(&self, other: &ReflowBlock) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for ReflowBlock
impl PartialEq for ReflowBlock
source§fn eq(&self, other: &ReflowBlock) -> bool
fn eq(&self, other: &ReflowBlock) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReflowBlock
Auto Trait Implementations§
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> 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