pub struct FunctionSignature {
pub meta: Option<Meta>,
pub name: String,
pub module_name: Option<String>,
pub type_handle: Option<TypeHandle>,
pub visibility: Visibility,
pub inputs: Vec<FunctionParameter>,
pub outputs: Vec<FunctionParameter>,
}
Fields§
§meta: Option<Meta>
§name: String
§module_name: Option<String>
§type_handle: Option<TypeHandle>
§visibility: Visibility
§inputs: Vec<FunctionParameter>
§outputs: Vec<FunctionParameter>
Implementations§
Source§impl FunctionSignature
impl FunctionSignature
pub fn new(name: impl ToString) -> Self
pub fn with_meta(self, meta: Meta) -> Self
pub fn with_module_name(self, name: impl ToString) -> Self
pub fn with_type_handle(self, handle: TypeHandle) -> Self
pub fn with_visibility(self, visibility: Visibility) -> Self
pub fn with_input(self, parameter: FunctionParameter) -> Self
pub fn with_output(self, parameter: FunctionParameter) -> Self
Trait Implementations§
Source§impl Clone for FunctionSignature
impl Clone for FunctionSignature
Source§fn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FunctionSignature
impl Debug for FunctionSignature
Source§impl Display for FunctionSignature
impl Display for FunctionSignature
Source§impl PartialEq for FunctionSignature
impl PartialEq for FunctionSignature
impl StructuralPartialEq for FunctionSignature
Auto Trait Implementations§
impl Freeze for FunctionSignature
impl RefUnwindSafe for FunctionSignature
impl Send for FunctionSignature
impl Sync for FunctionSignature
impl Unpin for FunctionSignature
impl UnwindSafe for FunctionSignature
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