pub struct SubmoduleStmt { /* private fields */ }Expand description
The “submodule” Statement.
Implementations§
Source§impl SubmoduleStmt
impl SubmoduleStmt
pub fn arg(&self) -> &Identifier
pub fn submodule_header(&self) -> &SubmoduleHeaderStmts
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 SubmoduleStmt
impl Clone for SubmoduleStmt
Source§fn clone(&self) -> SubmoduleStmt
fn clone(&self) -> SubmoduleStmt
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 SubmoduleStmt
impl Debug for SubmoduleStmt
Source§impl PartialEq for SubmoduleStmt
impl PartialEq for SubmoduleStmt
Source§impl Stmt for SubmoduleStmt
impl Stmt for SubmoduleStmt
Source§type Arg = Identifier
type Arg = Identifier
Arg type.
Source§type SubStmts = (SubmoduleHeaderStmts, LinkageStmts, MetaStmts, RevisionStmts, BodyStmts)
type SubStmts = (SubmoduleHeaderStmts, 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 SubmoduleStmt
Auto Trait Implementations§
impl Freeze for SubmoduleStmt
impl RefUnwindSafe for SubmoduleStmt
impl Send for SubmoduleStmt
impl Sync for SubmoduleStmt
impl Unpin for SubmoduleStmt
impl UnwindSafe for SubmoduleStmt
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