pub enum TypeBodyStmts {
NumericalRestrictions(NumericalRestrictions),
Decimal64Specification(Decimal64Specification),
StringRestrictions(StringRestrictions),
EnumSpecification(EnumSpecification),
LeafrefSpecification(LeafrefSpecification),
IdentityrefSpecification(IdentityrefSpecification),
InstanceIdentifierSpecification(InstanceIdentifierSpecification),
BitsSpecification(BitsSpecification),
UnionSpecification(UnionSpecification),
BinarySpecification(BinarySpecification),
}Expand description
“type-body” Statements.
Variants§
NumericalRestrictions(NumericalRestrictions)
Decimal64Specification(Decimal64Specification)
StringRestrictions(StringRestrictions)
EnumSpecification(EnumSpecification)
LeafrefSpecification(LeafrefSpecification)
IdentityrefSpecification(IdentityrefSpecification)
InstanceIdentifierSpecification(InstanceIdentifierSpecification)
BitsSpecification(BitsSpecification)
UnionSpecification(UnionSpecification)
BinarySpecification(BinarySpecification)
Implementations§
Source§impl TypeBodyStmts
impl TypeBodyStmts
Sourcepub fn substmts_def() -> Vec<SubStmtDef>
pub fn substmts_def() -> Vec<SubStmtDef>
Return substatements definition.
pub fn parse(parser: &mut Parser) -> Result<TypeBodyStmts, YangError>
Trait Implementations§
Source§impl Clone for TypeBodyStmts
impl Clone for TypeBodyStmts
Source§fn clone(&self) -> TypeBodyStmts
fn clone(&self) -> TypeBodyStmts
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 TypeBodyStmts
impl Debug for TypeBodyStmts
Source§impl PartialEq for TypeBodyStmts
impl PartialEq for TypeBodyStmts
impl StructuralPartialEq for TypeBodyStmts
Auto Trait Implementations§
impl Freeze for TypeBodyStmts
impl RefUnwindSafe for TypeBodyStmts
impl Send for TypeBodyStmts
impl Sync for TypeBodyStmts
impl Unpin for TypeBodyStmts
impl UnwindSafe for TypeBodyStmts
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