#[repr(C)]pub struct lysp_stmt {
pub stmt: *const c_char,
pub arg: *const c_char,
pub format: Type,
pub prefix_data: *mut c_void,
pub next: *mut lysp_stmt,
pub child: *mut lysp_stmt,
pub flags: u16,
pub kw: Type,
}Expand description
@brief Structure representing a generic parsed YANG substatement in an extension instance.
Fields§
§stmt: *const c_char< identifier of the statement
arg: *const c_char< statement’s argument
format: Type< prefix format of the identifier/argument (::LY_VALUE_XML is YIN format)
prefix_data: *mut c_void< Format-specific data for prefix resolution (see ly_resolve_prefix())
next: *mut lysp_stmt< link to the next statement
child: *mut lysp_stmt< list of the statement’s substatements (linked list)
flags: u16< statement flags, can be set to LYS_YIN_ATTR
kw: Type< numeric respresentation of the stmt value
Trait Implementations§
Auto Trait Implementations§
impl !Send for lysp_stmt
impl !Sync for lysp_stmt
impl Freeze for lysp_stmt
impl RefUnwindSafe for lysp_stmt
impl Unpin for lysp_stmt
impl UnsafeUnpin for lysp_stmt
impl UnwindSafe for lysp_stmt
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