pub struct Signature {
pub args: Cow<'static, [ValueType]>,
pub return_value: Option<ValueType>,
}
Expand description
The Signature of a function
Fields§
§args: Cow<'static, [ValueType]>
The arguments of a function.
return_value: Option<ValueType>
The optional return value of a function.
Implementations§
source§impl Signature
impl Signature
sourcepub fn new<T: Into<Cow<'static, [ValueType]>>>(
args: T,
return_value: Option<ValueType>,
) -> Self
pub fn new<T: Into<Cow<'static, [ValueType]>>>( args: T, return_value: Option<ValueType>, ) -> Self
Create a new instance of Signature
.
sourcepub fn new_with_args<T: Into<Cow<'static, [ValueType]>>>(args: T) -> Self
pub fn new_with_args<T: Into<Cow<'static, [ValueType]>>>(args: T) -> Self
Create a new instance of Signature
with the given args
and without any return value.
Trait Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)