#[repr(C)]pub struct lysp_feature {
pub name: *const c_char,
pub iffeatures: *mut lysp_qname,
pub iffeatures_c: *mut lysc_iffeature,
pub depfeatures: *mut *mut lysp_feature,
pub dsc: *const c_char,
pub ref_: *const c_char,
pub exts: *mut lysp_ext_instance,
pub flags: u16,
}Expand description
@brief YANG feature-stmt
Fields§
§name: *const c_char< feature name (mandatory)
iffeatures: *mut lysp_qname< list of if-feature expressions ([sized array](@ref sizedarrays))
iffeatures_c: *mut lysc_iffeature< compiled if-features
depfeatures: *mut *mut lysp_feature< list of pointers to other features depending on this one ([sized array](@ref sizedarrays))
dsc: *const c_char< description statement
ref_: *const c_char< reference statement
exts: *mut lysp_ext_instance< list of the extension instances ([sized array](@ref sizedarrays))
flags: u16< [schema node flags](@ref snodeflags) - only LYS_STATUS_* values and LYS_FENABLED are allowed
Trait Implementations§
Source§impl Clone for lysp_feature
impl Clone for lysp_feature
Source§fn clone(&self) -> lysp_feature
fn clone(&self) -> lysp_feature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for lysp_feature
Source§impl Debug for lysp_feature
impl Debug for lysp_feature
Auto Trait Implementations§
impl !Send for lysp_feature
impl !Sync for lysp_feature
impl Freeze for lysp_feature
impl RefUnwindSafe for lysp_feature
impl Unpin for lysp_feature
impl UnsafeUnpin for lysp_feature
impl UnwindSafe for lysp_feature
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