pub struct PerlTidyConfig {
pub maximum_line_length: Option<u32>,
pub indent_columns: Option<u32>,
pub tabs: Option<bool>,
pub opening_brace_on_new_line: Option<bool>,
pub cuddled_else: Option<bool>,
pub space_after_keyword: Option<bool>,
pub add_trailing_commas: Option<bool>,
pub vertical_alignment: Option<bool>,
pub block_comment_indentation: Option<u32>,
pub profile: Option<String>,
pub extra_args: Vec<String>,
pub timeout_secs: u64,
}Expand description
Configuration for perltidy.
Fields§
§maximum_line_length: Option<u32>Maximum line length.
indent_columns: Option<u32>Indent size (spaces).
tabs: Option<bool>Use tabs instead of spaces.
opening_brace_on_new_line: Option<bool>Opening brace on same line.
cuddled_else: Option<bool>Cuddled else.
space_after_keyword: Option<bool>Space after keyword.
add_trailing_commas: Option<bool>Add trailing commas.
vertical_alignment: Option<bool>Vertical alignment.
block_comment_indentation: Option<u32>Block comment indentation.
profile: Option<String>Custom perltidyrc file path.
extra_args: Vec<String>Additional command line arguments.
timeout_secs: u64Timeout in seconds for the perltidy subprocess. Default: 10.
Implementations§
Source§impl PerlTidyConfig
impl PerlTidyConfig
Sourcepub fn pbp() -> PerlTidyConfig
pub fn pbp() -> PerlTidyConfig
Create a config for PBP (Perl Best Practices) style.
Sourcepub fn gnu() -> PerlTidyConfig
pub fn gnu() -> PerlTidyConfig
Create a config for GNU style.
Trait Implementations§
Source§impl Clone for PerlTidyConfig
impl Clone for PerlTidyConfig
Source§fn clone(&self) -> PerlTidyConfig
fn clone(&self) -> PerlTidyConfig
Returns a duplicate 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 PerlTidyConfig
impl Debug for PerlTidyConfig
Source§impl Default for PerlTidyConfig
impl Default for PerlTidyConfig
Source§fn default() -> PerlTidyConfig
fn default() -> PerlTidyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PerlTidyConfig
impl<'de> Deserialize<'de> for PerlTidyConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PerlTidyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PerlTidyConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PerlTidyConfig
impl Serialize for PerlTidyConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PerlTidyConfig
impl RefUnwindSafe for PerlTidyConfig
impl Send for PerlTidyConfig
impl Sync for PerlTidyConfig
impl Unpin for PerlTidyConfig
impl UnsafeUnpin for PerlTidyConfig
impl UnwindSafe for PerlTidyConfig
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