pub enum DeviateStmt {
NotSupported,
Add(DeviateAddStmt),
Replace(DeviateReplaceStmt),
Delete(DeviateDeleteStmt),
}Expand description
The “deviate” Statement.
Variants§
NotSupported
“deviate not-supported”.
Add(DeviateAddStmt)
“deviate add”.
Replace(DeviateReplaceStmt)
“deviate replace”.
Delete(DeviateDeleteStmt)
“deviate delete”.
Trait Implementations§
Source§impl Clone for DeviateStmt
impl Clone for DeviateStmt
Source§fn clone(&self) -> DeviateStmt
fn clone(&self) -> DeviateStmt
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 DeviateStmt
impl Debug for DeviateStmt
Source§impl PartialEq for DeviateStmt
impl PartialEq for DeviateStmt
Source§impl Stmt for DeviateStmt
impl Stmt for DeviateStmt
Source§fn parse(parser: &mut Parser) -> Result<YangStmt, YangError>
fn parse(parser: &mut Parser) -> Result<YangStmt, YangError>
Parse a statement and return the object wrapped in enum.
Source§fn has_substmts() -> bool
fn has_substmts() -> bool
Return true if this statement has 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.
impl StructuralPartialEq for DeviateStmt
Auto Trait Implementations§
impl Freeze for DeviateStmt
impl RefUnwindSafe for DeviateStmt
impl Send for DeviateStmt
impl Sync for DeviateStmt
impl Unpin for DeviateStmt
impl UnwindSafe for DeviateStmt
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