pub fn needs_semi(&self) -> bool {
        match self {
            Self::While(_) => false,
            Self::Loop(_) => false,
            Self::For(_) => false,
            Self::If(_) => false,
            Self::Match(_) => false,
            Self::Block(_) => false,
            Self::Select(_) => false,
            Self::MacroCall(macro_call) => macro_call.needs_semi(),
            Self::ForceSemi(force_semi) => force_semi.needs_semi,
            _ => true,
        }
    }
/// Indicates if an expression needs a semicolon or must be last in a block.
Indicates if an expression needs a semicolon or must be last in a block.
Indicates if an expression needs a semicolon or must be last in a block .
pub fn needs_semi(&self) -> bool {
        match self {
            Self::While(_) => false,
            Self::Loop(_) => false,
            Self::For(_) => false,
            Self::If(_) => false,
            Self::Match(_) => false,
            Self::Block(_) => false,
            Self::Select(_) => false,
            Self::MacroCall(macro_call) => macro_call.needs_semi(),
            Self::ForceSemi(force_semi) => force_semi.needs_semi,
            _ => true,
        }
    }
pub fn needs_semi ( & self ) -> bool { match self { Self :: While ( _ ) => false , Self :: Loop ( _ ) => false , Self :: For ( _ ) => false , Self :: If ( _ ) => false , Self :: Match ( _ ) => false , Self :: Block ( _ ) => false , Self :: Select ( _ ) => false , Self :: MacroCall ( macro_call ) => macro_call . needs_semi ( ) , Self :: ForceSemi ( force_semi ) => force_semi . needs_semi , _ => true , } }
Indicates if an expression needs a semicolon or must be last in a block.
Indicates if an expression needs a semicolon or must be last in a block .
&self
&self