Struct nvpair::NvList
[−]
pub struct NvList(_);
An NvList
Methods
impl NvList
[src]
fn new() -> Result<Self>
[src]
Create a new NvList
with no options
fn new_unqiue_names() -> Result<Self>
[src]
Create a new NvList
with the NV_UNIQUE_NAME
constraint
fn try_clone(&self) -> Result<Self>
[src]
Methods from Deref<Target = NvListRef>
fn as_mut_ptr(&mut self) -> *mut nvlist
[src]
fn as_ptr(&self) -> *const nvlist
[src]
fn encoded_size(&self, encoding: NvEncoding) -> Result<usize>
[src]
fn is_empty(&self) -> bool
[src]
fn add_boolean<S: CStrArgument>(&mut self, name: S) -> Result<()>
[src]
fn first(&self) -> Option<&NvPair>
[src]
fn iter(&self) -> NvListIter
[src]
fn exists<S: CStrArgument>(&self, name: S) -> bool
[src]
fn lookup<S: CStrArgument>(&self, name: S) -> Result<&NvPair>
[src]
fn try_to_owned(&self) -> Result<NvList>
[src]
Trait Implementations
impl ForeignType for NvList
type CType = nvlist
The raw C type.
type Ref = NvListRef
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut nvlist) -> NvList
Constructs an instance of this type from its raw type.
fn as_ptr(&self) -> *mut nvlist
Returns a raw pointer to the wrapped value.
impl Drop for NvList
impl Deref for NvList
type Target = NvListRef
The resulting type after dereferencing.
fn deref(&self) -> &NvListRef
Dereferences the value.