pub struct ExtensionStmt { /* private fields */ }Expand description
The “extension” Statement.
Implementations§
Source§impl ExtensionStmt
impl ExtensionStmt
pub fn arg(&self) -> &Identifier
pub fn argument(&self) -> &Option<ArgumentStmt>
pub fn status(&self) -> &Option<StatusStmt>
pub fn description(&self) -> &Option<DescriptionStmt>
pub fn reference(&self) -> &Option<ReferenceStmt>
Trait Implementations§
Source§impl Clone for ExtensionStmt
impl Clone for ExtensionStmt
Source§fn clone(&self) -> ExtensionStmt
fn clone(&self) -> ExtensionStmt
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 ExtensionStmt
impl Debug for ExtensionStmt
Source§impl PartialEq for ExtensionStmt
impl PartialEq for ExtensionStmt
Source§impl Stmt for ExtensionStmt
impl Stmt for ExtensionStmt
Source§type Arg = Identifier
type Arg = Identifier
Arg type.
Source§type SubStmts = (Option<ArgumentStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>)
type SubStmts = (Option<ArgumentStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>)
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 ExtensionStmt
Auto Trait Implementations§
impl Freeze for ExtensionStmt
impl RefUnwindSafe for ExtensionStmt
impl Send for ExtensionStmt
impl Sync for ExtensionStmt
impl Unpin for ExtensionStmt
impl UnwindSafe for ExtensionStmt
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