Struct lib_ruby_parser::nodes::Defined [−][src]
#[repr(C)]pub struct Defined {
pub value: Box<Node>,
pub keyword_l: Loc,
pub begin_l: Option<Loc>,
pub end_l: Option<Loc>,
pub expression_l: Loc,
}Expand description
Represents a defined?(foo) expression
Fields
value: Box<Node>Value given to defined?
keyword_l: LocLocation of the defined? keyword
defined?(foo)
~~~~~~~~begin_l: Option<Loc>Location of the open parenthesis
defined?(foo)
~None if there are no parentheses
end_l: Option<Loc>Location of the closing parenthesis
defined?(foo)
~None if there are no parentheses
expression_l: LocLocation of the full expression
defined?(foo)
~~~~~~~~~~~~~Implementations
Returns keyword_l field
Returns begin_l field
Returns expression_l field
Sets keyword_l field
Sets begin_l field
Sets expression_l field
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Defined
impl UnwindSafe for Defined
Blanket Implementations
Mutably borrows from an owned value. Read more