pub struct LocalVariable {
pub name: Option<String>,
pub ty: Handle<Type>,
pub init: Option<Handle<Expression>>,
}Expand description
A function-local variable.
Fields§
§name: Option<String>Optional variable name.
ty: Handle<Type>The type of this variable.
init: Option<Handle<Expression>>Optional initializer expression.
Trait Implementations§
Source§impl Clone for LocalVariable
impl Clone for LocalVariable
Source§fn clone(&self) -> LocalVariable
fn clone(&self) -> LocalVariable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalVariable
impl RefUnwindSafe for LocalVariable
impl Send for LocalVariable
impl Sync for LocalVariable
impl Unpin for LocalVariable
impl UnsafeUnpin for LocalVariable
impl UnwindSafe for LocalVariable
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