Struct tea_sdk::serde::layout::UseFromToBytes
pub struct UseFromToBytes<T>(/* private fields */);
Trait Implementations§
§impl<T> LayoutRead for UseFromToBytes<T>where
T: for<'a> FromBytes<'a>,
impl<T> LayoutRead for UseFromToBytes<T>where T: for<'a> FromBytes<'a>,
type Read<'a> = T
fn read<'a>( buf: &mut &'a [u8] ) -> Result<<UseFromToBytes<T> as LayoutRead>::Read<'a>, Global>
§impl<T> LayoutWrite for UseFromToBytes<T>where
T: ToBytes,
impl<T> LayoutWrite for UseFromToBytes<T>where T: ToBytes,
type Write<'a> = &'a T where UseFromToBytes<T>: 'a
fn size( value: <UseFromToBytes<T> as LayoutWrite>::Write<'_> ) -> Result<usize, Global>
fn write( value: <UseFromToBytes<T> as LayoutWrite>::Write<'_>, buf: impl SerBuf ) -> Result<(), Global>
Auto Trait Implementations§
impl<T> RefUnwindSafe for UseFromToBytes<T>where T: RefUnwindSafe,
impl<T> Send for UseFromToBytes<T>where T: Send,
impl<T> Sync for UseFromToBytes<T>where T: Sync,
impl<T> Unpin for UseFromToBytes<T>where T: Unpin,
impl<T> UnwindSafe for UseFromToBytes<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more