LIBMTP_allowed_values_struct

Struct LIBMTP_allowed_values_struct 

Source
#[repr(C)]
pub struct LIBMTP_allowed_values_struct {
Show 35 fields pub u8max: u8, pub u8min: u8, pub u8step: u8, pub u8vals: *mut u8, pub i8max: i8, pub i8min: i8, pub i8step: i8, pub i8vals: *mut i8, pub u16max: u16, pub u16min: u16, pub u16step: u16, pub u16vals: *mut u16, pub i16max: i16, pub i16min: i16, pub i16step: i16, pub i16vals: *mut i16, pub u32max: u32, pub u32min: u32, pub u32step: u32, pub u32vals: *mut u32, pub i32max: i32, pub i32min: i32, pub i32step: i32, pub i32vals: *mut i32, pub u64max: u64, pub u64min: u64, pub u64step: u64, pub u64vals: *mut u64, pub i64max: i64, pub i64min: i64, pub i64step: i64, pub i64vals: *mut i64, pub num_entries: u16, pub datatype: LIBMTP_datatype_t, pub is_range: c_int,
}
Expand description

A data structure to hold allowed ranges of values

Fields§

§u8max: u8§u8min: u8§u8step: u8§u8vals: *mut u8§i8max: i8§i8min: i8§i8step: i8§i8vals: *mut i8§u16max: u16§u16min: u16§u16step: u16§u16vals: *mut u16§i16max: i16§i16min: i16§i16step: i16§i16vals: *mut i16§u32max: u32§u32min: u32§u32step: u32§u32vals: *mut u32§i32max: i32§i32min: i32§i32step: i32§i32vals: *mut i32§u64max: u64§u64min: u64§u64step: u64§u64vals: *mut u64§i64max: i64§i64min: i64§i64step: i64§i64vals: *mut i64§num_entries: u16

Number of entries in the vals array

§datatype: LIBMTP_datatype_t

The datatype specifying which of the above is used

§is_range: c_int

Non zero for range, 0 for enum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.