[][src]Struct to_bytes::AsIs

pub struct AsIs<T: Default>(_);

Serialize to bytes as-is for non-primitive types

Implementations

impl<T: Default> AsIs<T>[src]

pub fn new(t: T) -> Self[src]

pub fn unwrap(self) -> T[src]

Trait Implementations

impl<T: Default> AsMut<T> for AsIs<T>[src]

impl<T: Default> AsRef<T> for AsIs<T>[src]

impl<T: Clone + Default> Clone for AsIs<T>[src]

impl<T: Copy + Default> Copy for AsIs<T>[src]

impl<T: Debug + Default> Debug for AsIs<T>[src]

impl<T: Default> Default for AsIs<T>[src]

impl<T: Default> Deref for AsIs<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Display + Default> Display for AsIs<T>[src]

impl<T: Eq + Default> Eq for AsIs<T>[src]

impl<T: Default> From<T> for AsIs<T>[src]

impl<T: Hash + Default> Hash for AsIs<T>[src]

impl<T: Ord + Default> Ord for AsIs<T>[src]

impl<T: PartialEq + Default> PartialEq<AsIs<T>> for AsIs<T>[src]

impl<T: PartialOrd + Default> PartialOrd<AsIs<T>> for AsIs<T>[src]

impl<'a, T: Default> ReadBack<'a> for AsIs<T>[src]

impl<'a, T: Default> ReadBackMut<'a> for AsIs<T>[src]

impl<T: Default> StructuralEq for AsIs<T>[src]

impl<T: Default> StructuralPartialEq for AsIs<T>[src]

impl<T: Default> ToBytes for AsIs<T>[src]

impl<T: Default> ToSimpleDataBytesAsIs for AsIs<T>[src]

impl<T: Default + TransmuteBack> TransmuteBack for AsIs<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AsIs<T> where
    T: RefUnwindSafe

impl<T> Send for AsIs<T> where
    T: Send

impl<T> Sync for AsIs<T> where
    T: Sync

impl<T> Unpin for AsIs<T> where
    T: Unpin

impl<T> UnwindSafe for AsIs<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ReadBack<'a> for T where
    T: ToSizedArray<u8>, 
[src]

impl<'a, T> ReadBackMut<'a> for T where
    T: ToSizedArray<u8>, 
[src]

impl<T> ToBytes for T where
    T: ToSizedArray<u8>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSimpleDataBytesAsIs for T where
    T: ToSimpleDataBytes
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TransmuteBack for T where
    T: ToSizedArray<u8> + Copy
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.