[−][src]Enum libptp::DataType
Variants
INT8(i8)UINT8(u8)INT16(i16)UINT16(u16)INT32(i32)UINT32(u32)INT64(i64)UINT64(u64)INT128(i128)UINT128(u128)STR(String)Implementations
impl DataType[src]
pub fn encode(&self) -> Vec<u8>[src]
pub fn read_type<T: Read>(kind: u16, reader: &mut T) -> Result<DataType, Error>[src]
Trait Implementations
impl Clone for DataType[src]
impl Debug for DataType[src]
impl From<&'_ str> for DataType[src]
impl From<String> for DataType[src]
impl From<i16> for DataType[src]
impl From<i32> for DataType[src]
impl From<i64> for DataType[src]
impl From<i8> for DataType[src]
impl From<u16> for DataType[src]
impl From<u32> for DataType[src]
impl From<u64> for DataType[src]
impl From<u8> for DataType[src]
impl PartialEq<DataType> for DataType[src]
impl StructuralPartialEq for DataType[src]
Auto Trait Implementations
impl RefUnwindSafe for DataType[src]
impl Send for DataType[src]
impl Sync for DataType[src]
impl Unpin for DataType[src]
impl UnwindSafe for DataType[src]
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>,