pub struct Arg { /* private fields */ }Expand description
Represents a function argument in a function. Example:
arg1: vec3<f32>Implementations§
Source§impl Arg
impl Arg
Sourcepub fn new(docs: Option<String>, name: String, ty: FunctionType) -> Arg
pub fn new(docs: Option<String>, name: String, ty: FunctionType) -> Arg
Creates a new Arg instance (usually from parsed elements).
Sourcepub fn argument_type(&self) -> &FunctionType
pub fn argument_type(&self) -> &FunctionType
Get field ty from instance of Arg.
Trait Implementations§
impl Eq for Arg
Source§impl RegisterImports for Arg
impl RegisterImports for Arg
Source§fn register_imports(&mut self, imports: &[Import])
fn register_imports(&mut self, imports: &[Import])
Registers the imports used by the type.
Source§fn register_same_module_types(&mut self, type_names: &[String])
fn register_same_module_types(&mut self, type_names: &[String])
Registers the types from the same module as the type.
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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