Skip to main content

Assign

Trait Assign 

Source
pub trait Assign {
    // Required methods
    fn expand_assign(&mut self, scope: &mut Scope, value: Self);
    fn init_mut(&self, scope: &mut Scope) -> Self;
}

Required Methods§

Source

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Assign value to self in scope.

Source

fn init_mut(&self, scope: &mut Scope) -> Self

Create a new mutable variable of this type in scope.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Assign for ()

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign> Assign for (P0,)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign> Assign for (P0, P1)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign> Assign for (P0, P1, P2)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign> Assign for (P0, P1, P2, P3)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign> Assign for (P0, P1, P2, P3, P4)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign> Assign for (P0, P1, P2, P3, P4, P5)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign, P6: Assign> Assign for (P0, P1, P2, P3, P4, P5, P6)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign, P6: Assign, P7: Assign> Assign for (P0, P1, P2, P3, P4, P5, P6, P7)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign, P6: Assign, P7: Assign, P8: Assign> Assign for (P0, P1, P2, P3, P4, P5, P6, P7, P8)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign, P6: Assign, P7: Assign, P8: Assign, P9: Assign> Assign for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign, P6: Assign, P7: Assign, P8: Assign, P9: Assign, P10: Assign> Assign for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<P0: Assign, P1: Assign, P2: Assign, P3: Assign, P4: Assign, P5: Assign, P6: Assign, P7: Assign, P8: Assign, P9: Assign, P10: Assign, P11: Assign> Assign for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<T: Assign> Assign for Option<T>

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Source§

impl<T: Assign> Assign for Vec<T>

Source§

fn expand_assign(&mut self, scope: &mut Scope, value: Self)

Source§

fn init_mut(&self, scope: &mut Scope) -> Self

Implementors§