#[repr(C)]pub struct lysc_when {
pub cond: *mut lyxp_expr,
pub context: *mut lysc_node,
pub prefixes: *mut lysc_prefix,
pub dsc: *const c_char,
pub ref_: *const c_char,
pub exts: *mut lysc_ext_instance,
pub refcount: u32,
pub flags: u16,
}Expand description
@brief YANG when-stmt
Fields§
§cond: *mut lyxp_expr< XPath when condition
context: *mut lysc_node< context node for evaluating the expression, NULL if the context is root node
prefixes: *mut lysc_prefix< compiled used prefixes in the condition
dsc: *const c_char< description
ref_: *const c_char< reference
exts: *mut lysc_ext_instance< list of the extension instances ([sized array](@ref sizedarrays))
refcount: u32< reference counter since some of the when statements are shared among several nodes
flags: u16< [schema node flags](@ref snodeflags) - only LYS_STATUS is allowed
Trait Implementations§
Auto Trait Implementations§
impl !Send for lysc_when
impl !Sync for lysc_when
impl Freeze for lysc_when
impl RefUnwindSafe for lysc_when
impl Unpin for lysc_when
impl UnsafeUnpin for lysc_when
impl UnwindSafe for lysc_when
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