pub struct ChoiceStmt { /* private fields */ }Expand description
The “choice” Statement.
Implementations§
Source§impl ChoiceStmt
impl ChoiceStmt
pub fn arg(&self) -> &Identifier
pub fn when(&self) -> &Option<WhenStmt>
pub fn if_feature(&self) -> &Vec<IfFeatureStmt>
pub fn default(&self) -> &Option<DefaultStmt>
pub fn config(&self) -> &Option<ConfigStmt>
pub fn mandatory(&self) -> &Option<MandatoryStmt>
pub fn status(&self) -> &Option<StatusStmt>
pub fn description(&self) -> &Option<DescriptionStmt>
pub fn reference(&self) -> &Option<ReferenceStmt>
pub fn short_case_or_case(&self) -> &ShortCaseOrCaseStmt
Source§impl ChoiceStmt
impl ChoiceStmt
pub fn choice(&self) -> &Vec<ChoiceStmt>
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 anydata(&self) -> &Vec<AnydataStmt>
pub fn anyxml(&self) -> &Vec<AnyxmlStmt>
pub fn case(&self) -> &Vec<CaseStmt>
Trait Implementations§
Source§impl Clone for ChoiceStmt
impl Clone for ChoiceStmt
Source§fn clone(&self) -> ChoiceStmt
fn clone(&self) -> ChoiceStmt
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 ChoiceStmt
impl Debug for ChoiceStmt
Source§impl PartialEq for ChoiceStmt
impl PartialEq for ChoiceStmt
Source§impl Stmt for ChoiceStmt
impl Stmt for ChoiceStmt
Source§type Arg = Identifier
type Arg = Identifier
Arg type.
Source§type SubStmts = (Option<WhenStmt>, Vec<IfFeatureStmt>, Option<DefaultStmt>, Option<ConfigStmt>, Option<MandatoryStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>, ShortCaseOrCaseStmt)
type SubStmts = (Option<WhenStmt>, Vec<IfFeatureStmt>, Option<DefaultStmt>, Option<ConfigStmt>, Option<MandatoryStmt>, Option<StatusStmt>, Option<DescriptionStmt>, Option<ReferenceStmt>, ShortCaseOrCaseStmt)
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 ChoiceStmt
Auto Trait Implementations§
impl Freeze for ChoiceStmt
impl RefUnwindSafe for ChoiceStmt
impl Send for ChoiceStmt
impl Sync for ChoiceStmt
impl Unpin for ChoiceStmt
impl UnwindSafe for ChoiceStmt
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