Struct wgpu::naga::FunctionResult
source · pub struct FunctionResult {
pub ty: Handle<Type>,
pub binding: Option<Binding>,
}
Available on
wgpu_core
or naga
only.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§
source§impl Clone for FunctionResult
impl Clone for FunctionResult
source§fn clone(&self) -> FunctionResult
fn clone(&self) -> FunctionResult
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 FunctionResult
impl Debug for FunctionResult
source§impl<'de> Deserialize<'de> for FunctionResult
impl<'de> Deserialize<'de> for FunctionResult
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FunctionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FunctionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for FunctionResult
impl Serialize for FunctionResult
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FunctionResult
impl RefUnwindSafe for FunctionResult
impl Send for FunctionResult
impl Sync for FunctionResult
impl Unpin for FunctionResult
impl UnwindSafe for FunctionResult
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