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§
sourcefn to_statement(self) -> Semi<Self>
fn to_statement(self) -> Semi<Self>
Converts the expression to a semi-colon ended statement.
Object Safety§
This trait is not object safe.