Enum stylua_lib::CallParenType
source · pub enum CallParenType {
Always,
NoSingleString,
NoSingleTable,
None,
Input,
}
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.
Input
Keep call parentheses based on its presence in input code.
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 ==
.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<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