[−][src]Enum libptp::DataType
Variants
UNDEF
INT8(i8)
UINT8(u8)
INT16(i16)
UINT16(u16)
INT32(i32)
UINT32(u32)
INT64(i64)
UINT64(u64)
INT128(i128)
UINT128(u128)
AINT8(Vec<i8>)
AUINT8(Vec<u8>)
AINT16(Vec<i16>)
AUINT16(Vec<u16>)
AINT32(Vec<i32>)
AUINT32(Vec<u32>)
AINT64(Vec<i64>)
AUINT64(Vec<u64>)
AINT128(Vec<i128>)
AUINT128(Vec<u128>)
STR(String)
Methods
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]
fn clone(&self) -> DataType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<i8> for DataType
[src]
impl From<u8> for DataType
[src]
impl From<i16> for DataType
[src]
impl From<u16> for DataType
[src]
impl From<i32> for DataType
[src]
impl From<u32> for DataType
[src]
impl From<i64> for DataType
[src]
impl From<u64> for DataType
[src]
impl<'_> From<&'_ str> for DataType
[src]
impl From<String> for DataType
[src]
impl PartialEq<DataType> for DataType
[src]
impl Debug for DataType
[src]
Auto Trait Implementations
impl Unpin for DataType
impl Sync for DataType
impl Send for DataType
impl UnwindSafe for DataType
impl RefUnwindSafe for DataType
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,