Trait code_gen::ToSemi

source ·
pub trait ToSemi: Expression + Sized {
    // Required method
    fn to_statement(self) -> Semi<Self>;
}
Expand description

An expression that can convert itself to a semi-colon ended statement.

Required Methods§

source

fn to_statement(self) -> Semi<Self>

Converts the expression to a semi-colon ended statement.

Object Safety§

This trait is not object safe.

Implementors§