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 for SameOrNextLinePosition
 
impl PartialEq 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 ==.source§impl Serialize for SameOrNextLinePosition
 
impl Serialize for SameOrNextLinePosition
source§impl ToString for SameOrNextLinePosition
 
impl ToString for SameOrNextLinePosition
impl Copy for SameOrNextLinePosition
impl StructuralPartialEq for SameOrNextLinePosition
Auto Trait Implementations§
impl RefUnwindSafe for SameOrNextLinePosition
impl Send for SameOrNextLinePosition
impl Sync for SameOrNextLinePosition
impl Unpin for SameOrNextLinePosition
impl UnwindSafe for SameOrNextLinePosition
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