pub enum BreakLinePointIndentation {
Indented,
IndentedWithTail,
NotIndented,
}
Expand description
Defines the break point behaviour. Defined in get_break_line_point_properties.
Variants§
Indented
Represents a break line point group which should be indented when broken. For example, binary expr:
let x = 1 + 2 + 3 + 4
IndentedWithTail
Represents a break line point group which should be indented when broken, except for the last one in the group. For example, the break points before and after a StructArgList indent the list itself, but the closing braces should not be indented:
let x = Struct { first_arg: first_arg, second_arg: second_arg, };
NotIndented
Represents a break line point which should not be indented when broken. For example, the break points after TerminalComma of StructArgList. Notice that the break line points StructArgList wrapping it incur indentation.
let x = Struct { first_arg: first_arg, second_arg: second_arg, third_arg: third_arg, fourth_arg: fourth_arg, fifth_arg: fifth_arg, };
Trait Implementations§
Source§impl Clone for BreakLinePointIndentation
impl Clone for BreakLinePointIndentation
Source§fn clone(&self) -> BreakLinePointIndentation
fn clone(&self) -> BreakLinePointIndentation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BreakLinePointIndentation
impl Debug for BreakLinePointIndentation
Source§impl Ord for BreakLinePointIndentation
impl Ord for BreakLinePointIndentation
Source§fn cmp(&self, other: &BreakLinePointIndentation) -> Ordering
fn cmp(&self, other: &BreakLinePointIndentation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for BreakLinePointIndentation
impl PartialOrd for BreakLinePointIndentation
impl Copy for BreakLinePointIndentation
impl Eq for BreakLinePointIndentation
impl StructuralPartialEq for BreakLinePointIndentation
Auto Trait Implementations§
impl Freeze for BreakLinePointIndentation
impl RefUnwindSafe for BreakLinePointIndentation
impl Send for BreakLinePointIndentation
impl Sync for BreakLinePointIndentation
impl Unpin for BreakLinePointIndentation
impl UnwindSafe for BreakLinePointIndentation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more