pub struct ModuleStmt { /* private fields */ }Expand description
The “module” Statement.
Implementations§
Source§impl ModuleStmt
impl ModuleStmt
pub fn arg(&self) -> &Identifier
pub fn module_header(&self) -> &ModuleHeaderStmts
pub fn linkage(&self) -> &LinkageStmts
pub fn meta(&self) -> &MetaStmts
pub fn revision(&self) -> &RevisionStmts
pub fn body(&self) -> &BodyStmts
Trait Implementations§
Source§impl Clone for ModuleStmt
impl Clone for ModuleStmt
Source§fn clone(&self) -> ModuleStmt
fn clone(&self) -> ModuleStmt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleStmt
impl Debug for ModuleStmt
Source§impl PartialEq for ModuleStmt
impl PartialEq for ModuleStmt
Source§impl Stmt for ModuleStmt
impl Stmt for ModuleStmt
Source§type Arg = Identifier
type Arg = Identifier
Arg type.
Source§type SubStmts = (ModuleHeaderStmts, LinkageStmts, MetaStmts, RevisionStmts, BodyStmts)
type SubStmts = (ModuleHeaderStmts, LinkageStmts, MetaStmts, RevisionStmts, BodyStmts)
Sub Statements.
Source§fn has_substmts() -> bool
fn has_substmts() -> bool
Return true if this statement has substatements.
Source§fn new_with_substmts(arg: Self::Arg, substmts: Self::SubStmts) -> YangStmtwhere
Self: Sized,
fn new_with_substmts(arg: Self::Arg, substmts: Self::SubStmts) -> YangStmtwhere
Self: Sized,
Constructor with tuple of substatements. Panic if it is not defined.
Source§fn parse_substmts(parser: &mut Parser) -> Result<Self::SubStmts, YangError>
fn parse_substmts(parser: &mut Parser) -> Result<Self::SubStmts, YangError>
Parse substatements.
Source§fn opt_substmts() -> bool
fn opt_substmts() -> bool
Return true if this statement has sub-statements optionally.
Source§fn substmts_def() -> Vec<SubStmtDef>
fn substmts_def() -> Vec<SubStmtDef>
Return substatements definition.
impl StructuralPartialEq for ModuleStmt
Auto Trait Implementations§
impl Freeze for ModuleStmt
impl RefUnwindSafe for ModuleStmt
impl Send for ModuleStmt
impl Sync for ModuleStmt
impl Unpin for ModuleStmt
impl UnwindSafe for ModuleStmt
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