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