Struct naga::LocalVariable
source · [−]pub struct LocalVariable {
pub name: Option<String>,
pub ty: Handle<Type>,
pub init: Option<Handle<Constant>>,
}
Expand description
Variable defined at function level.
Fields
name: Option<String>
Name of the variable, if any.
ty: Handle<Type>
The type of this variable.
init: Option<Handle<Constant>>
Initial value for this variable.
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for LocalVariable
impl<'arbitrary> Arbitrary<'arbitrary> for LocalVariable
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 LocalVariable
impl Clone for LocalVariable
sourcefn clone(&self) -> LocalVariable
fn clone(&self) -> LocalVariable
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 LocalVariable
impl Debug for LocalVariable
sourceimpl<'de> Deserialize<'de> for LocalVariable
impl<'de> Deserialize<'de> for LocalVariable
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 LocalVariable
impl Serialize for LocalVariable
Auto Trait Implementations
impl RefUnwindSafe for LocalVariable
impl Send for LocalVariable
impl Sync for LocalVariable
impl Unpin for LocalVariable
impl UnwindSafe for LocalVariable
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