Struct lib_ruby_parser::nodes::Module [−][src]
#[repr(C)]pub struct Module {
pub name: Box<Node>,
pub body: Option<Box<Node>>,
pub keyword_l: Loc,
pub end_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents module declaration using module
keyword
Fields
name: Box<Node>
Name of the module
body: Option<Box<Node>>
Body of the module
None
if module has no body
keyword_l: Loc
Location of the module
keyword
module M; end
~~~~~~
end_l: Loc
Location of the end
keyword
module M; end
~~~
expression_l: Loc
Location of the full expression
module M; end
~~~~~~~~~~~~~
Implementations
Returns keyword_l
field
Returns expression_l
field
Sets keyword_l
field
Sets expression_l
field
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Module
impl UnwindSafe for Module
Blanket Implementations
Mutably borrows from an owned value. Read more