pub enum SingleBodyPosition {
Maintain,
SameLine,
NextLine,
}
Expand description
Where to place the expression of a statement that could possibly be on one line (ex. if (true) console.log(5);
).
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 SingleBodyPosition
impl Clone for SingleBodyPosition
sourcefn clone(&self) -> SingleBodyPosition
fn clone(&self) -> SingleBodyPosition
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for SingleBodyPosition
impl<'de> Deserialize<'de> for SingleBodyPosition
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 SingleBodyPosition
impl FromStr for SingleBodyPosition
sourceimpl PartialEq<SingleBodyPosition> for SingleBodyPosition
impl PartialEq<SingleBodyPosition> for SingleBodyPosition
sourcefn eq(&self, other: &SingleBodyPosition) -> bool
fn eq(&self, other: &SingleBodyPosition) -> bool
sourceimpl Serialize for SingleBodyPosition
impl Serialize for SingleBodyPosition
sourceimpl ToString for SingleBodyPosition
impl ToString for SingleBodyPosition
impl Copy for SingleBodyPosition
impl StructuralPartialEq for SingleBodyPosition
Auto Trait Implementations
impl RefUnwindSafe for SingleBodyPosition
impl Send for SingleBodyPosition
impl Sync for SingleBodyPosition
impl Unpin for SingleBodyPosition
impl UnwindSafe for SingleBodyPosition
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