[][src]Struct lib_ruby_parser::nodes::KwBegin

pub struct KwBegin {
    pub statements: Vec<Node>,
    pub begin_l: Option<Range>,
    pub end_l: Option<Range>,
    pub expression_l: Range,
}

Represents an explicit begin; end block.

The reason why it's different is that only

begin; foo; end while cond

is a post-while loop (same with post-until loop)

Fields

statements: Vec<Node>

A list of statements

begin_l: Option<Range>

Location of the begin keyword

begin; foo; end
~~~~~
end_l: Option<Range>

Location of the begin keyword

begin; foo; end
            ~~~
expression_l: Range

Location of the full expression

begin; foo; bar
~~~~~~~~~~~~~~~

Trait Implementations

impl Clone for KwBegin[src]

impl Debug for KwBegin[src]

impl PartialEq<KwBegin> for KwBegin[src]

impl StructuralPartialEq for KwBegin[src]

Auto Trait Implementations

impl RefUnwindSafe for KwBegin

impl Send for KwBegin

impl Sync for KwBegin

impl Unpin for KwBegin

impl UnwindSafe for KwBegin

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.