[][src]Struct lib_ruby_parser::nodes::Cvasgn

pub struct Cvasgn {
    pub name: String,
    pub value: Option<Box<Node>>,
    pub name_l: Range,
    pub operator_l: Option<Range>,
    pub expression_l: Range,
}

Represents class variable assignment (i.e. @@var = 42)

Fields

name: String

Name of the class variable, String("@@foo") for @@foo = 1

value: Option<Box<Node>>

Value that is assigned to class variable, Int("1") for @@foo = 1

name_l: Range

Location of the class variable name

@@foo = 1
~~~~~
operator_l: Option<Range>

Location of the = operator

@@foo = 1
      ~
expression_l: Range

Location of the full expression

@@foo = 1
~~~~~~~~~

Trait Implementations

impl Clone for Cvasgn[src]

impl Debug for Cvasgn[src]

impl PartialEq<Cvasgn> for Cvasgn[src]

impl StructuralPartialEq for Cvasgn[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.