Struct lib_ruby_parser::nodes::Module
source · [−]#[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
~~~~~~~~~~~~~
Trait Implementations
impl StructuralPartialEq for Module
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more