pub enum UseParentheses {
Maintain,
Force,
PreferNone,
}
Expand description
Whether to use parentheses around a single parameter in an arrow function.
Variants
Maintain
Maintains the current state of the parentheses.
Force
Forces parentheses.
PreferNone
Prefers not using parentheses when possible.
Trait Implementations
sourceimpl Clone for UseParentheses
impl Clone for UseParentheses
sourcefn clone(&self) -> UseParentheses
fn clone(&self) -> UseParentheses
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for UseParentheses
impl<'de> Deserialize<'de> for UseParentheses
sourcefn 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
sourceimpl FromStr for UseParentheses
impl FromStr for UseParentheses
sourceimpl PartialEq<UseParentheses> for UseParentheses
impl PartialEq<UseParentheses> for UseParentheses
sourcefn eq(&self, other: &UseParentheses) -> bool
fn eq(&self, other: &UseParentheses) -> bool
sourceimpl Serialize for UseParentheses
impl Serialize for UseParentheses
sourceimpl ToString for UseParentheses
impl ToString for UseParentheses
impl Copy for UseParentheses
impl StructuralPartialEq for UseParentheses
Auto Trait Implementations
impl RefUnwindSafe for UseParentheses
impl Send for UseParentheses
impl Sync for UseParentheses
impl Unpin for UseParentheses
impl UnwindSafe for UseParentheses
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more