code_gen/rust/function/with_signature.rs
1use crate::rust::Signature;
2use crate::{CodeBuffer, Expression};
3
4/// An element with a function signature.
5pub trait WithSignature {
6 /// Gets the function signature.
7 fn signature(&self) -> &Signature;
8
9 /// Writes the function signature.
10 fn write_signature(&self, b: &mut CodeBuffer) {
11 self.signature().write(b);
12 }
13}