pub struct SignatureDec { /* private fields */ }Expand description
A function signature declaration.
Trait Implementations§
Source§impl Statement for SignatureDec
impl Statement for SignatureDec
Source§fn write(&self, b: &mut CodeBuffer, level: usize)
fn write(&self, b: &mut CodeBuffer, level: usize)
Writes the code to the buffer
b at the indent level.Source§impl WithComments for SignatureDec
impl WithComments for SignatureDec
Source§fn add_comment<S>(&mut self, comment: S)
fn add_comment<S>(&mut self, comment: S)
Adds the
comment line.Source§fn with_comment<S>(self, comment: S) -> Self
fn with_comment<S>(self, comment: S) -> Self
Adds the
comment line.Source§fn write_comments(
&self,
comment_type: CommentType,
b: &mut CodeBuffer,
level: usize,
)
fn write_comments( &self, comment_type: CommentType, b: &mut CodeBuffer, level: usize, )
Writes the comment lines.
Source§impl WithSignature for SignatureDec
impl WithSignature for SignatureDec
Source§fn write_signature(&self, b: &mut CodeBuffer)
fn write_signature(&self, b: &mut CodeBuffer)
Writes the function signature.
Auto Trait Implementations§
impl Freeze for SignatureDec
impl RefUnwindSafe for SignatureDec
impl Send for SignatureDec
impl Sync for SignatureDec
impl Unpin for SignatureDec
impl UnwindSafe for SignatureDec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more