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
sourceimpl Clone for SameOrNextLinePosition
impl Clone for SameOrNextLinePosition
sourcefn clone(&self) -> SameOrNextLinePosition
fn clone(&self) -> SameOrNextLinePosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'de> Deserialize<'de> for SameOrNextLinePosition
impl<'de> Deserialize<'de> for SameOrNextLinePosition
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 SameOrNextLinePosition
impl FromStr for SameOrNextLinePosition
sourceimpl PartialEq<SameOrNextLinePosition> for SameOrNextLinePosition
impl PartialEq<SameOrNextLinePosition> for SameOrNextLinePosition
sourcefn eq(&self, other: &SameOrNextLinePosition) -> bool
fn eq(&self, other: &SameOrNextLinePosition) -> bool
sourceimpl Serialize for SameOrNextLinePosition
impl Serialize for SameOrNextLinePosition
sourceimpl 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
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