[][src]Trait runestick::IntoComponent

pub trait IntoComponent: Sized {
    fn as_component_ref(&self) -> ComponentRef<'_>;

    fn into_component(self) -> Component { ... }
fn write_component(self, output: &mut Vec<u8>) { ... }
fn hash_component<H>(self, hasher: &mut H)
    where
        H: Hasher
, { ... } }

Trait for encoding the current type into a component.

Required methods

fn as_component_ref(&self) -> ComponentRef<'_>

Convert into a component directly.

Loading content...

Provided methods

fn into_component(self) -> Component

Convert into component.

fn write_component(self, output: &mut Vec<u8>)

Write a component directly to a buffer.

fn hash_component<H>(self, hasher: &mut H) where
    H: Hasher

Hash the current component.

Loading content...

Implementations on Foreign Types

impl<'_> IntoComponent for &'_ str[src]

impl<'_, '_> IntoComponent for &'_ &'_ str[src]

impl IntoComponent for String[src]

impl<'_> IntoComponent for &'_ String[src]

impl<'_> IntoComponent for Cow<'_, str>[src]

Loading content...

Implementors

impl IntoComponent for Component[src]

impl IntoComponent for RawStr[src]

impl<'_> IntoComponent for &'_ Component[src]

impl<'_> IntoComponent for &'_ RawStr[src]

impl<'_> IntoComponent for ComponentRef<'_>[src]

impl<'_, '_> IntoComponent for &'_ ComponentRef<'_>[src]

Loading content...