pub struct ExportFunction {
pub name: String,
pub parameters: Vec<Param>,
pub return_type: Option<TypeRepr>,
pub visibility: Visibility,
pub source_path: PathBuf,
}Expand description
Parsed metadata for a single Noir #[export] function.
Fields§
§name: String§parameters: Vec<Param>§return_type: Option<TypeRepr>§visibility: Visibility§source_path: PathBufImplementations§
Trait Implementations§
Source§impl Clone for ExportFunction
impl Clone for ExportFunction
Source§fn clone(&self) -> ExportFunction
fn clone(&self) -> ExportFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExportFunction
impl Debug for ExportFunction
impl Eq for ExportFunction
Source§impl PartialEq for ExportFunction
impl PartialEq for ExportFunction
Source§fn eq(&self, other: &ExportFunction) -> bool
fn eq(&self, other: &ExportFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExportFunction
Auto Trait Implementations§
impl Freeze for ExportFunction
impl RefUnwindSafe for ExportFunction
impl Send for ExportFunction
impl Sync for ExportFunction
impl Unpin for ExportFunction
impl UnsafeUnpin for ExportFunction
impl UnwindSafe for ExportFunction
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