Struct sqruff_lib::utils::reflow::config::ReflowConfig
source · pub struct ReflowConfig { /* private fields */ }
Expand description
An interface onto the configuration of how segments should reflow.
This acts as the primary translation engine between configuration held either in dicts for testing, or in the FluffConfig in live usage, and the configuration used during reflow operations.
Implementations§
source§impl ReflowConfig
impl ReflowConfig
pub fn get_block_config( &self, block_class_types: &HashSet<String>, depth_info: Option<&DepthInfo> ) -> BlockConfig
pub fn from_fluff_config(_config: FluffConfig) -> ReflowConfig
Trait Implementations§
source§impl Clone for ReflowConfig
impl Clone for ReflowConfig
source§fn clone(&self) -> ReflowConfig
fn clone(&self) -> ReflowConfig
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 ReflowConfig
impl Debug for ReflowConfig
source§impl Default for ReflowConfig
impl Default for ReflowConfig
source§impl PartialEq for ReflowConfig
impl PartialEq for ReflowConfig
source§fn eq(&self, other: &ReflowConfig) -> bool
fn eq(&self, other: &ReflowConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ReflowConfig
impl StructuralPartialEq for ReflowConfig
Auto Trait Implementations§
impl RefUnwindSafe for ReflowConfig
impl Send for ReflowConfig
impl Sync for ReflowConfig
impl Unpin for ReflowConfig
impl UnwindSafe for ReflowConfig
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.