pub struct SchemaLeafType<'a> { /* private fields */ }Expand description
YANG leaf(-list) type.
Implementations§
Source§impl SchemaLeafType<'_>
impl SchemaLeafType<'_>
Sourcepub fn as_raw(&self) -> *mut lysc_type
pub fn as_raw(&self) -> *mut lysc_type
Returns a mutable raw pointer to the underlying C library representation of the leaf type.
Sourcepub fn base_type(&self) -> DataValueType
pub fn base_type(&self) -> DataValueType
Returns the resolved base type.
Sourcepub fn typedef_name(&self) -> Option<String>
pub fn typedef_name(&self) -> Option<String>
Returns the typedef name if it exists.
Sourcepub fn leafref_real_type(&self) -> Option<SchemaLeafType<'_>>
pub fn leafref_real_type(&self) -> Option<SchemaLeafType<'_>>
Returns the real type of the leafref, corresponding to the first non-leafref in a possible chain of leafrefs.
Trait Implementations§
Source§impl<'a> Binding<'a> for SchemaLeafType<'a>
impl<'a> Binding<'a> for SchemaLeafType<'a>
Source§impl<'a> Clone for SchemaLeafType<'a>
impl<'a> Clone for SchemaLeafType<'a>
Source§fn clone(&self) -> SchemaLeafType<'a>
fn clone(&self) -> SchemaLeafType<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SchemaLeafType<'a>
impl<'a> Debug for SchemaLeafType<'a>
impl Send for SchemaLeafType<'_>
impl Sync for SchemaLeafType<'_>
Auto Trait Implementations§
impl<'a> Freeze for SchemaLeafType<'a>
impl<'a> RefUnwindSafe for SchemaLeafType<'a>
impl<'a> Unpin for SchemaLeafType<'a>
impl<'a> UnwindSafe for SchemaLeafType<'a>
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