[][src]Struct lib_ruby_parser::nodes::Defined

pub struct Defined {
    pub value: Node,
    pub keyword_l: Range,
    pub begin_l: Option<Range>,
    pub end_l: Option<Range>,
    pub expression_l: Range,
}

Represents a defined?(foo) expression

Fields

value: Node

Value given to defined?

keyword_l: Range

Location of the defined? keyword

defined?(foo)
~~~~~~~~
begin_l: Option<Range>

Location of the open parenthesis

defined?(foo)
        ~

None if there are no parentheses

end_l: Option<Range>

Location of the closing parenthesis

defined?(foo)
            ~

None if there are no parentheses

expression_l: Range

Location of the full expression

defined?(foo)
~~~~~~~~~~~~~

Trait Implementations

impl Clone for Defined[src]

impl Debug for Defined[src]

impl PartialEq<Defined> for Defined[src]

impl StructuralPartialEq for Defined[src]

Auto Trait Implementations

impl RefUnwindSafe for Defined

impl Send for Defined

impl Sync for Defined

impl Unpin for Defined

impl UnwindSafe for Defined

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.