Struct libyang2_sys::lysp_submodule

source ·
#[repr(C)]
pub struct lysp_submodule {
Show 25 fields pub mod_: *mut lys_module, pub revs: *mut lysp_revision, pub imports: *mut lysp_import, pub includes: *mut lysp_include, pub extensions: *mut lysp_ext, pub features: *mut lysp_feature, pub identities: *mut lysp_ident, pub typedefs: *mut lysp_tpdf, pub groupings: *mut lysp_node_grp, pub data: *mut lysp_node, pub augments: *mut lysp_node_augment, pub rpcs: *mut lysp_node_action, pub notifs: *mut lysp_node_notif, pub deviations: *mut lysp_deviation, pub exts: *mut lysp_ext_instance, pub version: u8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub name: *const c_char, pub filepath: *const c_char, pub prefix: *const c_char, pub org: *const c_char, pub contact: *const c_char, pub dsc: *const c_char, pub ref_: *const c_char,
}

Fields§

§mod_: *mut lys_module§revs: *mut lysp_revision§imports: *mut lysp_import§includes: *mut lysp_include§extensions: *mut lysp_ext§features: *mut lysp_feature§identities: *mut lysp_ident§typedefs: *mut lysp_tpdf§groupings: *mut lysp_node_grp§data: *mut lysp_node§augments: *mut lysp_node_augment§rpcs: *mut lysp_node_action§notifs: *mut lysp_node_notif§deviations: *mut lysp_deviation§exts: *mut lysp_ext_instance§version: u8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§name: *const c_char§filepath: *const c_char§prefix: *const c_char§org: *const c_char§contact: *const c_char§dsc: *const c_char§ref_: *const c_char

Implementations§

source§

impl lysp_submodule

source

pub fn parsing(&self) -> u8

source

pub fn set_parsing(&mut self, val: u8)

source

pub fn is_submod(&self) -> u8

source

pub fn set_is_submod(&mut self, val: u8)

source

pub fn latest_revision(&self) -> u8

source

pub fn set_latest_revision(&mut self, val: u8)

source

pub fn new_bitfield_1( parsing: u8, is_submod: u8, latest_revision: u8 ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

source§

impl Clone for lysp_submodule

source§

fn clone(&self) -> lysp_submodule

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for lysp_submodule

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for lysp_submodule

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for lysp_submodule

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.