[][src]Struct libmpv_sys::mpv_node_list

#[repr(C)]pub struct mpv_node_list {
    pub num: c_int,
    pub values: *mut mpv_node,
    pub keys: *mut *mut c_char,
}

(see mpv_node)

Fields

num: c_int

Number of entries. Negative values are not allowed.

values: *mut mpv_node

MPV_FORMAT_NODE_ARRAY: values[N] refers to value of the Nth item

MPV_FORMAT_NODE_MAP: values[N] refers to value of the Nth key/value pair

If num > 0, values[0] to values[num-1] (inclusive) are valid. Otherwise, this can be NULL.

keys: *mut *mut c_char

MPV_FORMAT_NODE_ARRAY: unused (typically NULL), access is not allowed

MPV_FORMAT_NODE_MAP: keys[N] refers to key of the Nth key/value pair. If num > 0, keys[0] to keys[num-1] (inclusive) are valid. Otherwise, this can be NULL. The keys are in random order. The only guarantee is that keys[N] belongs to the value values[N]. NULL keys are not allowed.

Trait Implementations

impl Clone for mpv_node_list[src]

impl Copy for mpv_node_list[src]

impl Debug for mpv_node_list[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.