pub struct RefineStmt { /* private fields */ }Expand description
The “refine” Statement.
Implementations§
Source§impl RefineStmt
impl RefineStmt
pub fn arg(&self) -> &RefineArg
pub fn if_feature(&self) -> &Vec<IfFeatureStmt>
pub fn must(&self) -> &Vec<MustStmt>
pub fn presence(&self) -> &Option<PresenceStmt>
pub fn default(&self) -> &Vec<DefaultStmt>
pub fn config(&self) -> &Option<ConfigStmt>
pub fn mandatory(&self) -> &Option<MandatoryStmt>
pub fn min_elements(&self) -> &Option<MinElementsStmt>
pub fn max_elements(&self) -> &Option<MaxElementsStmt>
pub fn description(&self) -> &Option<DescriptionStmt>
pub fn reference(&self) -> &Option<ReferenceStmt>
Trait Implementations§
Source§impl Clone for RefineStmt
impl Clone for RefineStmt
Source§fn clone(&self) -> RefineStmt
fn clone(&self) -> RefineStmt
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 RefineStmt
impl Debug for RefineStmt
Source§impl PartialEq for RefineStmt
impl PartialEq for RefineStmt
Source§impl Stmt for RefineStmt
impl Stmt for RefineStmt
Source§type Arg = DescendantSchemaNodeid
type Arg = DescendantSchemaNodeid
Arg type.
Source§type SubStmts = (Vec<IfFeatureStmt>, Vec<MustStmt>, Option<PresenceStmt>, Vec<DefaultStmt>, Option<ConfigStmt>, Option<MandatoryStmt>, Option<MinElementsStmt>, Option<MaxElementsStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>)
type SubStmts = (Vec<IfFeatureStmt>, Vec<MustStmt>, Option<PresenceStmt>, Vec<DefaultStmt>, Option<ConfigStmt>, Option<MandatoryStmt>, Option<MinElementsStmt>, Option<MaxElementsStmt>, 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 RefineStmt
Auto Trait Implementations§
impl Freeze for RefineStmt
impl RefUnwindSafe for RefineStmt
impl Send for RefineStmt
impl Sync for RefineStmt
impl Unpin for RefineStmt
impl UnwindSafe for RefineStmt
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