#[repr(C)]pub struct mpv_node_list {
pub num: c_int,
pub values: *mut mpv_node,
pub keys: *mut *mut c_char,
}Expand description
(see mpv_node)
Fields§
§num: c_intNumber of entries. Negative values are not allowed.
values: *mut mpv_nodeMPV_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_charMPV_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§
Source§impl Clone for mpv_node_list
impl Clone for mpv_node_list
Source§fn clone(&self) -> mpv_node_list
fn clone(&self) -> mpv_node_list
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mpv_node_list
impl Debug for mpv_node_list
impl Copy for mpv_node_list
Auto Trait Implementations§
impl Freeze for mpv_node_list
impl RefUnwindSafe for mpv_node_list
impl !Send for mpv_node_list
impl !Sync for mpv_node_list
impl Unpin for mpv_node_list
impl UnwindSafe for mpv_node_list
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more