pub struct Signature { /* private fields */ }Expand description
A function signature.
Trait Implementations§
Source§impl Expression for Signature
impl Expression for Signature
Source§fn write(&self, b: &mut CodeBuffer)
fn write(&self, b: &mut CodeBuffer)
Writes the code to the buffer
b.Source§impl Ord for Signature
impl Ord for Signature
Source§impl PartialOrd for Signature
impl PartialOrd for Signature
Source§impl WithFnGenerics for Signature
impl WithFnGenerics for Signature
Source§fn add_generic<V>(&mut self, generic: V)
fn add_generic<V>(&mut self, generic: V)
Adds the
generic type parameter.Source§fn with_generic<V>(self, generic: V) -> Self
fn with_generic<V>(self, generic: V) -> Self
Adds the
generic type parameter.Source§fn write_generic_brackets(&self, b: &mut CodeBuffer)
fn write_generic_brackets(&self, b: &mut CodeBuffer)
Writes the generic brackets.
fn write_generic_where(&self, b: &mut CodeBuffer)
Source§impl WithName for Signature
impl WithName for Signature
Source§fn write_name(&self, b: &mut CodeBuffer)
fn write_name(&self, b: &mut CodeBuffer)
Writes the name.
Source§impl WithReceiver for Signature
impl WithReceiver for Signature
Source§impl WithResult for Signature
impl WithResult for Signature
Source§fn set_result<T>(&mut self, result: T)
fn set_result<T>(&mut self, result: T)
Sets the
result.Source§fn with_result<T>(self, result: T) -> Self
fn with_result<T>(self, result: T) -> Self
Sets the
result.Source§fn write_result(&self, b: &mut CodeBuffer)
fn write_result(&self, b: &mut CodeBuffer)
Writes the optional result. (includes the
-> if the result is not None)Source§impl WithUnsafeFlag for Signature
impl WithUnsafeFlag for Signature
Source§fn set_unsafe(&mut self)
fn set_unsafe(&mut self)
Sets the unsafe flag.
Source§fn with_unsafe(self) -> Self
fn with_unsafe(self) -> Self
Sets the unsafe flag.
Source§fn write_unsafe(&self, b: &mut CodeBuffer)
fn write_unsafe(&self, b: &mut CodeBuffer)
Writes the optional unsafe flag.
Source§impl WithVarParams for Signature
impl WithVarParams for Signature
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
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