pub struct PatternStmt { /* private fields */ }Expand description
The “pattern” Statement.
Implementations§
Source§impl PatternStmt
impl PatternStmt
pub fn arg(&self) -> &String
pub fn modifier(&self) -> &Option<ModifierStmt>
pub fn error_message(&self) -> &Option<ErrorMessageStmt>
pub fn error_app_tag(&self) -> &Option<ErrorAppTagStmt>
pub fn description(&self) -> &Option<DescriptionStmt>
pub fn reference(&self) -> &Option<ReferenceStmt>
Trait Implementations§
Source§impl Clone for PatternStmt
impl Clone for PatternStmt
Source§fn clone(&self) -> PatternStmt
fn clone(&self) -> PatternStmt
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 PatternStmt
impl Debug for PatternStmt
Source§impl PartialEq for PatternStmt
impl PartialEq for PatternStmt
Source§impl Stmt for PatternStmt
impl Stmt for PatternStmt
Source§type SubStmts = (Option<ModifierStmt>, Option<ErrorMessageStmt>, Option<ErrorAppTagStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>)
type SubStmts = (Option<ModifierStmt>, Option<ErrorMessageStmt>, Option<ErrorAppTagStmt>, 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 PatternStmt
Auto Trait Implementations§
impl Freeze for PatternStmt
impl RefUnwindSafe for PatternStmt
impl Send for PatternStmt
impl Sync for PatternStmt
impl Unpin for PatternStmt
impl UnwindSafe for PatternStmt
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