pub struct AugmentStmt { /* private fields */ }Expand description
The “augment” Statement.
Implementations§
Source§impl AugmentStmt
impl AugmentStmt
pub fn arg(&self) -> &SchemaNodeid
pub fn when(&self) -> &Option<WhenStmt>
pub fn if_feature(&self) -> &Vec<IfFeatureStmt>
pub fn status(&self) -> &Option<StatusStmt>
pub fn description(&self) -> &Option<DescriptionStmt>
pub fn reference(&self) -> &Option<ReferenceStmt>
pub fn data_def_or_else(&self) -> &DataDefOrElse
Source§impl AugmentStmt
impl AugmentStmt
pub fn container(&self) -> &Vec<ContainerStmt>
pub fn leaf(&self) -> &Vec<LeafStmt>
pub fn leaf_list(&self) -> &Vec<LeafListStmt>
pub fn list(&self) -> &Vec<ListStmt>
pub fn choice(&self) -> &Vec<ChoiceStmt>
pub fn anydata(&self) -> &Vec<AnydataStmt>
pub fn anyxml(&self) -> &Vec<AnyxmlStmt>
pub fn uses(&self) -> &Vec<UsesStmt>
pub fn case(&self) -> &Vec<CaseStmt>
pub fn action(&self) -> &Vec<ActionStmt>
pub fn notification(&self) -> &Vec<NotificationStmt>
Trait Implementations§
Source§impl Clone for AugmentStmt
impl Clone for AugmentStmt
Source§fn clone(&self) -> AugmentStmt
fn clone(&self) -> AugmentStmt
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 AugmentStmt
impl Debug for AugmentStmt
Source§impl PartialEq for AugmentStmt
impl PartialEq for AugmentStmt
Source§impl Stmt for AugmentStmt
impl Stmt for AugmentStmt
Source§type Arg = SchemaNodeid
type Arg = SchemaNodeid
Arg type.
Source§type SubStmts = (Option<WhenStmt>, Vec<IfFeatureStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>, DataDefOrElse)
type SubStmts = (Option<WhenStmt>, Vec<IfFeatureStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>, DataDefOrElse)
Sub Statements.
Source§fn has_substmts() -> bool
fn has_substmts() -> bool
Return true if this statement has substatements.
Source§fn substmts_def() -> Vec<SubStmtDef>
fn substmts_def() -> Vec<SubStmtDef>
Return substatements definition.
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.
impl StructuralPartialEq for AugmentStmt
Auto Trait Implementations§
impl Freeze for AugmentStmt
impl RefUnwindSafe for AugmentStmt
impl Send for AugmentStmt
impl Sync for AugmentStmt
impl Unpin for AugmentStmt
impl UnwindSafe for AugmentStmt
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