pub struct ArgumentStmt { /* private fields */ }Expand description
The “argument” Statement.
Implementations§
Source§impl ArgumentStmt
impl ArgumentStmt
pub fn arg(&self) -> &Identifier
pub fn yin_element(&self) -> &Option<YinElementStmt>
Trait Implementations§
Source§impl Clone for ArgumentStmt
impl Clone for ArgumentStmt
Source§fn clone(&self) -> ArgumentStmt
fn clone(&self) -> ArgumentStmt
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 ArgumentStmt
impl Debug for ArgumentStmt
Source§impl PartialEq for ArgumentStmt
impl PartialEq for ArgumentStmt
Source§impl Stmt for ArgumentStmt
impl Stmt for ArgumentStmt
Source§type Arg = Identifier
type Arg = Identifier
Arg type.
Source§type SubStmts = (Option<YinElementStmt>,)
type SubStmts = (Option<YinElementStmt>,)
Sub Statements.
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.
Source§fn new_with_arg(arg: Self::Arg) -> YangStmtwhere
Self: Sized,
fn new_with_arg(arg: Self::Arg) -> YangStmtwhere
Self: Sized,
Constructor with a single arg. Panic if it is not defined.
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 has_substmts() -> bool
fn has_substmts() -> bool
Return true if this statement has sub-statements.
impl StructuralPartialEq for ArgumentStmt
Auto Trait Implementations§
impl Freeze for ArgumentStmt
impl RefUnwindSafe for ArgumentStmt
impl Send for ArgumentStmt
impl Sync for ArgumentStmt
impl Unpin for ArgumentStmt
impl UnwindSafe for ArgumentStmt
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