Struct naga::FunctionArgument
source · [−]pub struct FunctionArgument {
pub name: Option<String>,
pub ty: Handle<Type>,
pub binding: Option<Binding>,
}
Expand description
A function argument.
Fields
name: Option<String>
Name of the argument, if any.
ty: Handle<Type>
Type of the argument.
binding: Option<Binding>
For entry points, an argument has to have a binding unless it’s a structure.
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for FunctionArgument
impl<'arbitrary> Arbitrary<'arbitrary> for FunctionArgument
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl Clone for FunctionArgument
impl Clone for FunctionArgument
sourcefn clone(&self) -> FunctionArgument
fn clone(&self) -> FunctionArgument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FunctionArgument
impl Debug for FunctionArgument
sourceimpl<'de> Deserialize<'de> for FunctionArgument
impl<'de> Deserialize<'de> for FunctionArgument
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for FunctionArgument
impl Serialize for FunctionArgument
Auto Trait Implementations
impl RefUnwindSafe for FunctionArgument
impl Send for FunctionArgument
impl Sync for FunctionArgument
impl Unpin for FunctionArgument
impl UnwindSafe for FunctionArgument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more