pub enum DangleAlign {
Prefix,
Open,
Close,
}Expand description
How to align the dangling closing paren.
Only takes effect when Config::dangle_parens is true.
Controls where ) is placed when a call wraps onto multiple lines:
# Prefix / Close — `)` at the command-name column (tracks block depth):
target_link_libraries(
mylib PUBLIC dep1
)
# Open — `)` at the opening-paren column:
target_link_libraries(
mylib PUBLIC dep1
)Variants§
Prefix
Align with the start of the command name.
Open
Align with the opening paren column.
Close
No extra indent (flush with current indent level).
Trait Implementations§
Source§impl Clone for DangleAlign
impl Clone for DangleAlign
Source§fn clone(&self) -> DangleAlign
fn clone(&self) -> DangleAlign
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 DangleAlign
impl Debug for DangleAlign
Source§impl Default for DangleAlign
impl Default for DangleAlign
Source§fn default() -> DangleAlign
fn default() -> DangleAlign
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DangleAlign
impl<'de> Deserialize<'de> for DangleAlign
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 for DangleAlign
impl PartialEq for DangleAlign
Source§impl Serialize for DangleAlign
impl Serialize for DangleAlign
impl Copy for DangleAlign
impl Eq for DangleAlign
impl StructuralPartialEq for DangleAlign
Auto Trait Implementations§
impl Freeze for DangleAlign
impl RefUnwindSafe for DangleAlign
impl Send for DangleAlign
impl Sync for DangleAlign
impl Unpin for DangleAlign
impl UnsafeUnpin for DangleAlign
impl UnwindSafe for DangleAlign
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.