pub fn write_message<U>(message: &U) -> (usize, usize)
where
    U: serialization::Serializable,
{
    let message: Vec<u8> = message.serialize();
    let local_len = message.len();
    (
        ManuallyDrop::new(message).as_mut_ptr() as *const usize as usize,
        local_len,
    )
}
/// Write a message to the buffer used to communicate with the host. You should
/// never need to call this directly.
Write a message to the buffer used to communicate with the host. You should
never need to call this directly.
Write a message to the buffer used to communicate with the host . You should never need to call this directly .
pub fn write_message<U>(message: &U) -> (usize, usize)
where
    U: serialization::Serializable,
{
    let message: Vec<u8> = message.serialize();
    let local_len = message.len();
    (
        ManuallyDrop::new(message).as_mut_ptr() as *const usize as usize,
        local_len,
    )
}
pub fn write_message < U > ( message : & U ) -> ( usize , usize ) where U : serialization :: Serializable , { let message : Vec < u8 > = message . serialize ( ) ; let local_len = message . len ( ) ; ( ManuallyDrop :: new ( message ) . as_mut_ptr ( ) as * const usize as usize , local_len , ) }
Write a message to the buffer used to communicate with the host.
Write a message to the buffer used to communicate with the host .
message
&U