Struct holochain_serialized_bytes::UnsafeBytes [−][src]
UnsafeBytes the only way to implement a custom round trip through bytes for SerializedBytes It is intended to be an internal implementation in TryFrom implementations The assumption is that any code using UnsafeBytes is NOT valid messagepack data This allows us to enforce that all data round-tripping through SerializedBytes is via TryFrom and also allow for custom non-messagepack canonical representations of data types.
Trait Implementations
impl Clone for UnsafeBytes
[src]
fn clone(&self) -> UnsafeBytes
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnsafeBytes
[src]
impl From<SerializedBytes> for UnsafeBytes
[src]
fn from(sb: SerializedBytes) -> Self
[src]
impl From<UnsafeBytes> for SerializedBytes
[src]
fn from(b: UnsafeBytes) -> Self
[src]
impl From<Vec<u8, Global>> for UnsafeBytes
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnsafeBytes
[src]
impl Send for UnsafeBytes
[src]
impl Sync for UnsafeBytes
[src]
impl Unpin for UnsafeBytes
[src]
impl UnwindSafe for UnsafeBytes
[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>,