Enum stylua_lib::CallParenType
source · pub enum CallParenType {
Always,
NoSingleString,
NoSingleTable,
None,
}Expand description
When to use call parentheses
Variants§
Always
Use call parentheses all the time
NoSingleString
Skip call parentheses when only a string argument is used.
NoSingleTable
Skip call parentheses when only a table argument is used.
None
Skip call parentheses when only a table or string argument is used.
Trait Implementations§
source§impl Clone for CallParenType
impl Clone for CallParenType
source§fn clone(&self) -> CallParenType
fn clone(&self) -> CallParenType
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 CallParenType
impl Debug for CallParenType
source§impl Default for CallParenType
impl Default for CallParenType
source§fn default() -> CallParenType
fn default() -> CallParenType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CallParenType
impl<'de> Deserialize<'de> for CallParenType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CallParenType> for CallParenType
impl PartialEq<CallParenType> for CallParenType
source§fn eq(&self, other: &CallParenType) -> bool
fn eq(&self, other: &CallParenType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.