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)
~~~~~~~~~~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Defined
impl UnwindSafe for Defined
Blanket Implementations
Mutably borrows from an owned value. Read more