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§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
impl Copy for CallParenType
impl Eq for CallParenType
impl StructuralEq for CallParenType
impl StructuralPartialEq for CallParenType
Auto Trait Implementations§
impl RefUnwindSafe for CallParenType
impl Send for CallParenType
impl Sync for CallParenType
impl Unpin for CallParenType
impl UnwindSafe for CallParenType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.