pub struct MaxElementsStmt { /* private fields */ }Expand description
The “max-elements” Statement.
Implementations§
Source§impl MaxElementsStmt
impl MaxElementsStmt
pub fn arg(&self) -> &MaxValueArg
Trait Implementations§
Source§impl Clone for MaxElementsStmt
impl Clone for MaxElementsStmt
Source§fn clone(&self) -> MaxElementsStmt
fn clone(&self) -> MaxElementsStmt
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 MaxElementsStmt
impl Debug for MaxElementsStmt
Source§impl PartialEq for MaxElementsStmt
impl PartialEq for MaxElementsStmt
Source§impl Stmt for MaxElementsStmt
impl Stmt for MaxElementsStmt
Source§type Arg = MaxValueArg
type Arg = MaxValueArg
Arg type.
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 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_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.
impl StructuralPartialEq for MaxElementsStmt
Auto Trait Implementations§
impl Freeze for MaxElementsStmt
impl RefUnwindSafe for MaxElementsStmt
impl Send for MaxElementsStmt
impl Sync for MaxElementsStmt
impl Unpin for MaxElementsStmt
impl UnwindSafe for MaxElementsStmt
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