#[repr(C)]pub struct AVOptionArrayDef {
pub def: *const i8,
pub size_min: u32,
pub size_max: u32,
pub sep: i8,
}
Expand description
May be set as default_val for AV_OPT_TYPE_FLAG_ARRAY options.
Fields§
§def: *const i8
Native access only.
Default value of the option, as would be serialized by av_opt_get() (i.e. using the value of sep as the separator).
size_min: u32
Minimum number of elements in the array. When this field is non-zero, def must be non-NULL and contain at least this number of elements.
size_max: u32
Maximum number of elements in the array, 0 when unlimited.
sep: i8
Separator between array elements in string representations of this option, used by av_opt_set() and av_opt_get(). It must be a printable ASCII character, excluding alphanumeric and the backslash. A comma is used when sep=0.
The separator and the backslash must be backslash-escaped in order to appear in string representations of the option value.
Trait Implementations§
Source§impl Clone for AVOptionArrayDef
impl Clone for AVOptionArrayDef
Source§fn clone(&self) -> AVOptionArrayDef
fn clone(&self) -> AVOptionArrayDef
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 AVOptionArrayDef
impl Debug for AVOptionArrayDef
impl Copy for AVOptionArrayDef
Auto Trait Implementations§
impl Freeze for AVOptionArrayDef
impl RefUnwindSafe for AVOptionArrayDef
impl !Send for AVOptionArrayDef
impl !Sync for AVOptionArrayDef
impl Unpin for AVOptionArrayDef
impl UnwindSafe for AVOptionArrayDef
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