#[repr(C)]pub struct lysp_include {
pub submodule: *mut lysp_submodule,
pub name: *const c_char,
pub dsc: *const c_char,
pub ref_: *const c_char,
pub exts: *mut lysp_ext_instance,
pub rev: [c_char; 11],
pub injected: ly_bool,
}Expand description
@brief YANG include-stmt
Fields§
§submodule: *mut lysp_submodule< pointer to the parsed submodule structure (mandatory, but resolved when the referring module is completely parsed)
name: *const c_char< name of the included submodule (mandatory)
dsc: *const c_char< description
ref_: *const c_char< reference
exts: *mut lysp_ext_instance< list of the extension instances ([sized array](@ref sizedarrays))
rev: [c_char; 11]< revision-date of the included submodule
injected: ly_bool< flag to mark includes copied into main module from submodules, only for backward compatibility with YANG 1.0, which does not require the main module to include all submodules.
Trait Implementations§
Source§impl Clone for lysp_include
impl Clone for lysp_include
Source§fn clone(&self) -> lysp_include
fn clone(&self) -> lysp_include
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_include
Source§impl Debug for lysp_include
impl Debug for lysp_include
Auto Trait Implementations§
impl !Send for lysp_include
impl !Sync for lysp_include
impl Freeze for lysp_include
impl RefUnwindSafe for lysp_include
impl Unpin for lysp_include
impl UnsafeUnpin for lysp_include
impl UnwindSafe for lysp_include
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