pub struct InputStmt { /* private fields */ }Expand description
The “input” Statement.
Implementations§
Source§impl InputStmt
impl InputStmt
pub fn must(&self) -> &Vec<MustStmt>
pub fn typedef_or_grouping(&self) -> &TypedefOrGrouping
pub fn data_def(&self) -> &DataDefStmt
Source§impl InputStmt
impl InputStmt
pub fn typedef(&self) -> &Vec<TypedefStmt>
pub fn grouping(&self) -> &Vec<GroupingStmt>
pub fn container(&self) -> &Vec<ContainerStmt>
pub fn leaf(&self) -> &Vec<LeafStmt>
pub fn leaf_list(&self) -> &Vec<LeafListStmt>
pub fn list(&self) -> &Vec<ListStmt>
pub fn choice(&self) -> &Vec<ChoiceStmt>
pub fn anydata(&self) -> &Vec<AnydataStmt>
pub fn anyxml(&self) -> &Vec<AnyxmlStmt>
pub fn uses(&self) -> &Vec<UsesStmt>
Trait Implementations§
Source§impl Stmt for InputStmt
impl Stmt for InputStmt
Source§type SubStmts = (Vec<MustStmt>, TypedefOrGrouping, DataDefStmt)
type SubStmts = (Vec<MustStmt>, TypedefOrGrouping, DataDefStmt)
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 InputStmt
Auto Trait Implementations§
impl Freeze for InputStmt
impl RefUnwindSafe for InputStmt
impl Send for InputStmt
impl Sync for InputStmt
impl Unpin for InputStmt
impl UnwindSafe for InputStmt
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