Struct lib_ruby_parser::nodes::Defined
source · #[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: Loc
Location 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: Loc
Location of the full expression
defined?(foo)
~~~~~~~~~~~~~
Trait Implementations§
source§impl PartialEq for Defined
impl PartialEq for Defined
impl StructuralPartialEq for Defined
Auto Trait Implementations§
impl Freeze for Defined
impl RefUnwindSafe for Defined
impl Send for Defined
impl Sync for Defined
impl Unpin for Defined
impl UnwindSafe for Defined
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more