[−][src]Struct libmtp_rs::values::AllowedValues
Contains the allowed values of an specific attribute, determines which data type should be used, and if the values are a range or enumeration.
Implementations
impl AllowedValues
[src]
pub fn is_range(&self) -> bool
[src]
Check whether the allowed values are a range or enumeration.
pub fn datatype(&self) -> DataType
[src]
Returns the data type that should be used.
pub fn u8_values(&self) -> Option<&Values<u8>>
[src]
Returns the u8
values, if the data type isn't DataType::U8
this will
return None
.
pub fn i8_values(&self) -> Option<&Values<i8>>
[src]
Returns the i8
values, if the data type isn't DataType::I8
this will
return None
.
pub fn u16_values(&self) -> Option<&Values<u16>>
[src]
Returns the u16
values, if the data type isn't DataType::U16
this will
return None
.
pub fn i16_values(&self) -> Option<&Values<i16>>
[src]
Returns the i16
values, if the data type isn't DataType::I16
this will
return None
.
pub fn u32_values(&self) -> Option<&Values<u32>>
[src]
Returns the u32
values, if the data type isn't DataType::U32
this will
return None
.
pub fn i32_values(&self) -> Option<&Values<i32>>
[src]
Returns the i32
values, if the data type isn't DataType::I32
this will
return None
.
pub fn u64_values(&self) -> Option<&Values<u64>>
[src]
Returns the u64
values, if the data type isn't DataType::U64
this will
return None
.
pub fn i64_values(&self) -> Option<&Values<i64>>
[src]
Returns the i64
values, if the data type isn't DataType::I64
this will
return None
.
Trait Implementations
impl Clone for AllowedValues
[src]
fn clone(&self) -> AllowedValues
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AllowedValues
[src]
impl Default for AllowedValues
[src]
Auto Trait Implementations
impl RefUnwindSafe for AllowedValues
impl Send for AllowedValues
impl Sync for AllowedValues
impl Unpin for AllowedValues
impl UnwindSafe for AllowedValues
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,