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