[][src]Struct sp_core::Bytes

pub struct Bytes(pub Vec<u8>);

Hex-serialized shim for Vec<u8>.

Trait Implementations

impl Clone for Bytes[src]

impl Debug for Bytes[src]

impl Deref for Bytes[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for Bytes[src]

impl Eq for Bytes[src]

impl From<OpaqueMetadata> for Bytes[src]

impl From<Vec<u8>> for Bytes[src]

impl FromStr for Bytes[src]

type Err = FromHexError

The associated error which can be returned from parsing.

impl Hash for Bytes[src]

impl Ord for Bytes[src]

impl PartialEq<Bytes> for Bytes[src]

impl PartialOrd<Bytes> for Bytes[src]

impl Serialize for Bytes[src]

impl StructuralEq for Bytes[src]

impl StructuralPartialEq for Bytes[src]

Auto Trait Implementations

impl RefUnwindSafe for Bytes

impl Send for Bytes

impl Sync for Bytes

impl Unpin for Bytes

impl UnwindSafe for Bytes

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(&Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(&mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

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

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]