Struct naga::FunctionResult
source · [−]Expand description
A function result.
Fields
ty: Handle<Type>
Type of the result.
binding: Option<Binding>
For entry points, the result has to have a binding unless it’s a structure.
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for FunctionResult
impl<'arbitrary> Arbitrary<'arbitrary> for FunctionResult
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 FunctionResult
impl Clone for FunctionResult
sourcefn clone(&self) -> FunctionResult
fn clone(&self) -> FunctionResult
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 FunctionResult
impl Debug for FunctionResult
sourceimpl<'de> Deserialize<'de> for FunctionResult
impl<'de> Deserialize<'de> for FunctionResult
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 FunctionResult
impl Serialize for FunctionResult
Auto Trait Implementations
impl RefUnwindSafe for FunctionResult
impl Send for FunctionResult
impl Sync for FunctionResult
impl Unpin for FunctionResult
impl UnwindSafe for FunctionResult
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