[][src]Struct no_proto::buffer::NP_Buffer

pub struct NP_Buffer<'a> {
    pub memory: Rc<RefCell<NP_Memory>>,
    // some fields omitted
}

Fields

memory: Rc<RefCell<NP_Memory>>

Methods

impl<'a> NP_Buffer<'a>[src]

pub fn open<F, X: NP_Value + Default + NP_ValueInto<'a>>(
    &mut self,
    callback: F
) -> Result<(), NP_Error> where
    F: FnMut(NP_Ptr<'a, X>) -> Result<(), NP_Error>, 
[src]

pub fn deep_set<X: NP_Value + Default + NP_ValueInto<'a>, S: AsRef<str>>(
    &self,
    _path: S,
    _value: X
) -> Result<(), NP_Error>
[src]

pub fn deep_get<X: NP_Value + Default + NP_ValueInto<'a>>(
    &self,
    _path: &str
) -> Result<Option<X>, NP_Error>
[src]

pub fn compact(&self)[src]

pub fn close(self) -> Result<Vec<u8>, NP_Error>[src]

pub fn calc_wasted_bytes(&self) -> u32[src]

pub fn maybe_compact<F>(&self, callback: F) -> bool where
    F: FnMut(f32, f32) -> bool
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for NP_Buffer<'a>

impl<'a> !Send for NP_Buffer<'a>

impl<'a> !Sync for NP_Buffer<'a>

impl<'a> Unpin for NP_Buffer<'a>

impl<'a> !UnwindSafe for NP_Buffer<'a>

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,