[][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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> DynClone for T where
    T: Clone

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

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

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

Get a reference to the inner from the outer.

pub 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

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,