pub struct TypeStmt { /* private fields */ }Expand description
The “type” Statement.
Implementations§
Source§impl TypeStmt
impl TypeStmt
pub fn arg(&self) -> &IdentifierRef
pub fn type_body(&self) -> &Option<TypeBodyStmts>
Trait Implementations§
Source§impl Stmt for TypeStmt
impl Stmt for TypeStmt
Source§type Arg = IdentifierRef
type Arg = IdentifierRef
Arg type.
Source§type SubStmts = Option<TypeBodyStmts>
type SubStmts = Option<TypeBodyStmts>
Sub Statements.
Source§fn opt_substmts() -> bool
fn opt_substmts() -> bool
Return true if this statement has sub-statements optionally.
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.
Source§fn substmts_def() -> Vec<SubStmtDef>
fn substmts_def() -> Vec<SubStmtDef>
Return substatements definition.
impl StructuralPartialEq for TypeStmt
Auto Trait Implementations§
impl Freeze for TypeStmt
impl RefUnwindSafe for TypeStmt
impl Send for TypeStmt
impl Sync for TypeStmt
impl Unpin for TypeStmt
impl UnwindSafe for TypeStmt
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