#[repr(C)]pub struct lysc_node_leaf {
pub __bindgen_anon_1: lysc_node_leaf__bindgen_ty_1,
pub musts: *mut lysc_must,
pub when: *mut *mut lysc_when,
pub type_: *mut lysc_type,
pub units: *const c_char,
pub dflt: lysc_value,
}Fields§
§__bindgen_anon_1: lysc_node_leaf__bindgen_ty_1§musts: *mut lysc_must< list of must restrictions ([sized array](@ref sizedarrays))
when: *mut *mut lysc_when< list of pointers to when statements ([sized array](@ref sizedarrays))
type_: *mut lysc_type< type of the leaf node (mandatory)
units: *const c_char< units of the leaf’s type
dflt: lysc_value< default value, use ::lyd_value_validate_dflt() to get real type and canonical value
Trait Implementations§
Source§impl Clone for lysc_node_leaf
impl Clone for lysc_node_leaf
Source§fn clone(&self) -> lysc_node_leaf
fn clone(&self) -> lysc_node_leaf
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 lysc_node_leaf
Auto Trait Implementations§
impl !Send for lysc_node_leaf
impl !Sync for lysc_node_leaf
impl Freeze for lysc_node_leaf
impl RefUnwindSafe for lysc_node_leaf
impl Unpin for lysc_node_leaf
impl UnsafeUnpin for lysc_node_leaf
impl UnwindSafe for lysc_node_leaf
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