pub enum SameOrNextLinePosition {
Maintain,
SameLine,
NextLine,
}
Expand description
Where to place a node that could be on the same line or next line.
Variants§
Maintain
Maintains the position of the expression.
SameLine
Forces the whole statement to be on one line.
NextLine
Forces the expression to be on the next line.
Trait Implementations§
source§impl Clone for SameOrNextLinePosition
impl Clone for SameOrNextLinePosition
source§fn clone(&self) -> SameOrNextLinePosition
fn clone(&self) -> SameOrNextLinePosition
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<'de> Deserialize<'de> for SameOrNextLinePosition
impl<'de> Deserialize<'de> for SameOrNextLinePosition
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 FromStr for SameOrNextLinePosition
impl FromStr for SameOrNextLinePosition
source§impl PartialEq<SameOrNextLinePosition> for SameOrNextLinePosition
impl PartialEq<SameOrNextLinePosition> for SameOrNextLinePosition
source§fn eq(&self, other: &SameOrNextLinePosition) -> bool
fn eq(&self, other: &SameOrNextLinePosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.