Struct sqruff_lib::utils::reflow::config::BlockConfig
source · pub struct BlockConfig {
pub spacing_before: String,
pub spacing_after: String,
pub spacing_within: Option<String>,
pub line_position: Option<String>,
}
Expand description
Holds spacing config for a block and allows easy manipulation
Fields§
§spacing_before: String
§spacing_after: String
§spacing_within: Option<String>
§line_position: Option<String>
Implementations§
Trait Implementations§
source§impl Clone for BlockConfig
impl Clone for BlockConfig
source§fn clone(&self) -> BlockConfig
fn clone(&self) -> BlockConfig
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 BlockConfig
impl Debug for BlockConfig
source§impl PartialEq for BlockConfig
impl PartialEq for BlockConfig
source§fn eq(&self, other: &BlockConfig) -> bool
fn eq(&self, other: &BlockConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BlockConfig
impl StructuralPartialEq for BlockConfig
Auto Trait Implementations§
impl RefUnwindSafe for BlockConfig
impl Send for BlockConfig
impl Sync for BlockConfig
impl Unpin for BlockConfig
impl UnwindSafe for BlockConfig
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.