[][src]Struct no_proto::buffer::NP_Item

pub struct NP_Item<'item> {
    pub index: usize,
    // some fields omitted
}

NP Item

Fields

index: usize

index of this value

Implementations

impl<'item> NP_Item<'item>[src]

pub fn clone(&self) -> Self[src]

Clone this item

pub fn get_key<'key>(&'key self) -> String[src]

Get key at this value

pub fn has_value(&self) -> bool[src]

If this item has a value

pub fn get<X>(&'item self) -> Result<Option<X>, NP_Error> where
    X: NP_Value<'item> + Default
[src]

Get value at this pointer

pub fn set<X>(&'item mut self, value: X) -> Result<(), NP_Error> where
    X: NP_Value<'item> + Default
[src]

Set value at this pointer

pub fn clear(&self) -> bool[src]

Clear the value at this pointer

Trait Implementations

impl<'item> Debug for NP_Item<'item>[src]

Auto Trait Implementations

impl<'item> !Send for NP_Item<'item>

impl<'item> !Sync for NP_Item<'item>

impl<'item> Unpin for NP_Item<'item>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.