[][src]Struct lib_ruby_parser::nodes::SClass

pub struct SClass {
    pub expr: Box<Node>,
    pub body: Option<Box<Node>>,
    pub keyword_l: Range,
    pub operator_l: Range,
    pub end_l: Range,
    pub expression_l: Range,
}

Represents opening a singleton class (i.e. class << foo; ... end;)

Fields

expr: Box<Node>

Expression that is used to get a singleton class

Lvar("foo") for class << foo; end

body: Option<Box<Node>>

Body of the block

keyword_l: Range

Location of the class keyword

class << foo; end
~~~~~
operator_l: Range

Location of the << operator

class << foo; end
      ~~
end_l: Range

Location of the end keyword

class << foo; end
              ~~~
expression_l: Range

Location of the full expression

class << foo; end
~~~~~~~~~~~~~~~~~

Trait Implementations

impl Clone for SClass[src]

impl Debug for SClass[src]

impl PartialEq<SClass> for SClass[src]

impl StructuralPartialEq for SClass[src]

Auto Trait Implementations

impl !RefUnwindSafe for SClass

impl !Send for SClass

impl !Sync for SClass

impl Unpin for SClass

impl UnwindSafe for SClass

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.