pub trait NvTypeOp {
// Required method
fn add_to_list<'a, N: IntoCStr<'a>>(
&self,
list: &mut NvList,
name: N
) -> NvResult<()>;
}
Expand description
This allows usage of insert method with basic types. Implement this for your own types if you don’t want to convert to primitive types every time.
Required Methods§
Implementations on Foreign Types§
source§impl<T> NvTypeOp for Option<T>where
T: NvTypeOp,
impl<T> NvTypeOp for Option<T>where T: NvTypeOp,
If Some
insert content to the list. If None
insert null.